The LIMIT Keyword
- The
LIMITkeyword can be used for limiting the number of rows that are fetched as a result of aSELECTstatement; - The
LIMITkeyword always comes after theORDER BYclause;
12345SELECT * FROM students WHERE age < 20 ORDER BY enrollment_date LIMIT 1;
Everything was clear?
Thanks for your feedback!
Sectionย 3. Chapterย 8
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.72
The LIMIT Keyword
Swipe to show menu
- The
LIMITkeyword can be used for limiting the number of rows that are fetched as a result of aSELECTstatement; - The
LIMITkeyword always comes after theORDER BYclause;
12345SELECT * FROM students WHERE age < 20 ORDER BY enrollment_date LIMIT 1;
Everything was clear?
Thanks for your feedback!
Sectionย 3. Chapterย 8