Test Index
Structured Query Language (SQL)
© examsnet.com
Question : 44 of 58
Marks:
+1,
-0
Fill in the blank :_______ clause is used with SELECT statement to display data in a sorted form with respect to a specified column.
[CBSE 2023 Set 4]
Solution:
Concept:
ORDER BY sorts the result of a SELECT on one or more columns, in ascending order by default (DESC for descending).Explanation:SELECT * FROM STUDENT ORDER BY MARKS DESC;
WHERE filters rows, HAVING filters groups made by GROUP BY, and DISTINCT removes duplicate rows; none of them sorts.Answer:Option B (ORDER BY)© examsnet.com
Go to Question: