Q 49. Define SQL Order by the statement?
Ans : The ORDER BY statement in SQL is used to sort the fetched data in either ascending or descending according to one or more columns.
➢ By default ORDER BY sorts the data in ascending order.
➢ We can use the keyword DESC to sort the data in descending order and the keyword ASC to sort in ascending order.
No comments:
Post a Comment