ORDER BY Clause
UsedSort the data Ascending(ASC) or Descending(DESC)
Default Sorts is ASCENDING(ASC)
Use (DESC) keyword to Change the data in descending order
SYNTAX
SELECT [<Column-name>,…] FROM <table-name>
ORDER BY <Column-name>..,ASC(or) DESC;
Group By Clause
•Usedto group identical values.
•Divide the table into group
Syntax
Select<Column-name> From <table-name> Group By <column-name>
Having conditions;