Discussion
ORDER BY can be combined with the SELECT statements.
Answer: A
Correct answer: True
ORDER BY is a clause of the SELECT statement and comes last, after WHERE, GROUP BY and HAVING - sorting is the final operation applied to what those have produced.
It is worth combining deliberately rather than by habit: without it the result has no defined order at all, because a relation is a set. Any order observed without it is incidental to how the engine happened to read the data, and it can change when the table grows or an index is added.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development