There are several clauses used with select statement, they are as follows
- WHERE CONDITION– It will restrict rows according to the condition.
- HIERARCHICAL_QUERY_CLAUSES– Structures the output in a hierarchical order.
- ORDER BY– Sorts the row.
- GROUP BY– Collect rows in group in order to identify value common to which group.
- HAVING CLAUSES– It is type of where clauses, It can be defined in GROUP BY Clauses.
Syntax:-
SELECT [ALL | DISTINCT]
column1[,
column2] FROM
table1[,
table2]
[WHERE "conditions"]
[GROUP BY "column-list"]
[HAVING "conditions]
[ORDER BY "column-list" [ASC | DESC] ];
ConversionConversion EmoticonEmoticon