Sorting after Filtering Data
Summary:
- The
ORDER BYclause can be placed after theWHEREclause to sort the data after conditionally filtering it; - Example:
SELECT * FROM students WHERE age > 20 ORDER BY name;.
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 5
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.72
Sorting after Filtering Data
Swipe to show menu
Summary:
- The
ORDER BYclause can be placed after theWHEREclause to sort the data after conditionally filtering it; - Example:
SELECT * FROM students WHERE age > 20 ORDER BY name;.
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 5