DELETE with WHERE clause:
SYNTAX:DELETE from TABLE_NAME where condition;
EXAMPLE:DELETE from Emp where Empno=7788;
SELECT with WHERE clause:
SYNTAX: Select * from Table_Name where Condition;
Example:Select * from Emp where Empno=7788;
ORDER BY CLAUSE:
Example: Select * From Emp Order By Eid;
PRIORITY OF USING CLAUSES:
1.WHERE 2.GROUP BY 3.HAVING 4.ORDER BY
SYNTAX:DELETE from TABLE_NAME where condition;
EXAMPLE:DELETE from Emp where Empno=7788;
SELECT with WHERE clause:
SYNTAX: Select * from Table_Name where Condition;
Example:Select * from Emp where Empno=7788;
ORDER BY CLAUSE:
- This clause is used to arrange the data either Ascending or Descending
- By Default Order by clause will arrange the data in Ascending Order.
- If we want to arrange the Data in Descending order then we need to use an option called DESC.
- By Default Order By clause will arrange the Data in Ascending Order.
- We can apply the Order By clause on any column in the table.
- If we apply the Order By clause on character columns then it will arranges the data in alphabetical order.
- We can apply the order by clause on more than one column in same table.
Example: Select * From Emp Order By Eid;
PRIORITY OF USING CLAUSES:
1.WHERE 2.GROUP BY 3.HAVING 4.ORDER BY
No comments:
Post a Comment
If you Like my blog Spread it and help friends for whom this blog is useful for their career.