🎴 Flashcard Mode

Oracle Database: Constraints, Data Types, and SQL Functions

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Sub query cannot have which clause defined for it

AnswerClick to flip back
A
order by
💡 Explanation:

Subqueries in SQL cannot use ORDER BY clause because subqueries return a set of rows used by the outer query, and the outer query determines the final ordering. However, subqueries can use WHERE for row filtering and HAVING for group filtering. ORDER BY is only allowed in the outermost query or in subqueries that use TOP/LIMIT/FETCH FIRST clauses (not in this question's context).

Change Mode