Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
The LIMIT Keyword | Sorting Data
Introduction to SQL
course content

Зміст курсу

Introduction to SQL

Introduction to SQL

1. Getting Started
3. Sorting Data
4. Populating a Database
5. Updating & Deleting Data

book
The LIMIT Keyword

  • The LIMIT keyword can be used for limiting the number of rows that are fetched as a result of a SELECT statement;
  • The LIMIT keyword always comes after the ORDER BY clause;
12345
SELECT * FROM students WHERE age < 20 ORDER BY enrollment_date LIMIT 1;
copy
question-icon

Complete the query:

Натисніть або перетягніть елементи та заповніть пропуски

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 8
We're sorry to hear that something went wrong. What happened?
some-alt