What is the default sorting order when using the ORDER BY clause in an SQL statement? MCQ with Answer and Explanation

What is the default sorting order when using the ORDER BY clause in an SQL statement?
A. Alphabetic only
B. Descending
C. Ascending
D. Random
Answer: Option C
Solution (By JKSSB Mock Tests)
By default, the ORDER BY clause sorts the query results in ascending order unless specified otherwise using the DESC keyword.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which SQL operator returns only the rows that are common and present in the outputs of both executing SELECT queries?
A. UNION
B. INTERSECT
C. JOIN
D. EXCEPT / MINUS

Correct Answer: Option B


Explanation:
The INTERSECT operator returns only the distinct rows that appear in the result sets of both SELECT statements.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which of the following is a property of a database that ensures transactions are isolated from each other?
A. Isolation
B. Consistency
C. Durability
D. Atomicity

Correct Answer: Option A


Explanation:
Isolation ensures that concurrent execution of transactions results in a state that is equivalent to some serial execution.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which normal form is stricter than 3NF and is often described as a configuration where every determinant must be a candidate key?
A. 4NF
B. 5NF
C. 2NF
D. Boyce-Codd Normal Form (BCNF)

Correct Answer: Option D


Explanation:
Boyce-Codd Normal Form (BCNF) is a stronger version of 3NF. A relation is in BCNF if, for every non-trivial functional dependency X -> Y, X is a candidate key.

This question belongs to: Computer Database Management System (DBMS)