April 2007
Intermediate to advanced
1032 pages
19h 28m
English
In what actual sequence are the rows in the result of a SELECT statement presented? If the SELECT statement has no ORDER BY clause, the sequence is unpredictable. When working through the examples or exercises, you might have found once or twice that the sequence of the rows in your result differs from the one in the book. Adding an ORDER BY clause at the end of a SELECT statement is the only guarantee that the rows in the end result are sorted in a certain way.
<order by clause> ::= ORDER BY <sort specification> [ , <sort specification> ]...<sort specification> ...
Read now
Unlock full access