DP-900 SQL Statements in Azure Data Studio

 SQL Statements in Azure Data Studio


Step 1 : Go to the Azure portal.


Step 2 : Open Azure Data Studio.


Step 3 : Connect your database, and you will see all the tables inside that database in Azure Data Studio.


Step 4 : Go to the new query tab and write your query.
Remember, you need to write the schema name and table name in the query  to access the data
* - To retrieve all records from the table.


column names after select - To select specific columns from the table


OrderBy - To set the data in a specific order.
- Sorts the rows based on the value specified in column.


Where - To retrieve the specific row with specific data.
- Always write the order by clause after the where clause.
- Always write a string in ' ', not in " ".






Delete - to delete all the data from the table.
Delete with a where clause - to delete a specific row from the table.



Update - to change the data in the table.
Update with set clause and where clause - to set a new value and select a specific row to set that value.
































Comments

Popular posts from this blog

AI-900-3,4

AI-900 12,13

AI-900 10,11