Order by:
· Order
by can be used to order a column.
Order by with multiple columns:
· Two
of the same value in a column we have to order two columns.
v Order
by column1 ASC/DESC , Order by Column2 ASC/DESC
v Separate
the column names with comma’s
v Specify
multiple columns and then order of them individually
v Can
also use numbers
v ORDER BY 1, 2, 3
Example: 1
Order by single column:
Example: 2
Order by multiple columns:
Example: 3
Order of clauses:
No comments:
Post a Comment