Question:

Kritika did not use ASC or DESC keyword with ORDER BY clause. By default in which order will the result of the query be displayed?

Show Hint

In SQL, ORDER BY sorts results in ascending order unless stated otherwise.
Updated On: Jul 14, 2025
Hide Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

In SQL, the ORDER BY clause is used to sort the result set of a query based on one or more columns.
The sorting can be done either in ascending (ASC) or descending (DESC) order.
However, if neither ASC nor DESC is explicitly mentioned, the default sorting order is ascending.
This means that values will be arranged from smallest to largest — for numbers, lowest to highest; for text, alphabetically A to Z.
Therefore, even if Kritika omits ASC or DESC, the data will still be sorted in ascending order by default.
Was this answer helpful?
0
0

Top Questions on SQL

View More Questions

Questions Asked in CBSE CLASS XII exam

View More Questions