Learn VisualLearn SQL Visual
JA

Sorting and Paging

ORDER BY sorts the result. If the direction is omitted, it uses ascending order (ASC); DESC uses descending order. LIMIT n returns the first n rows after sorting, and OFFSET n skips the first n. Together they page through a result. Without ORDER BY, row order is not guaranteed.

Which product has rank 1 after ORDER BY price DESC?