Sorting by one column
Welcome to the fourth section! Now it's time to learn how to sort the table based on some criteria.
For example, we want to sort the entire audi_cars
table based on the mileage
column. In SQL to sort by column use ORDER BY col_name
statement preceded by WHERE
, FROM
, and SELECT
statements.
123SELECT * FROM audi_cars ORDER BY mileage
Please note, that sorting in SQL is realized in ascending order by default.
Swipe to start coding
From the audi_cars
table extract all the cars sorted by price
.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 2.63Awesome!
Completion rate improved to 2.63
Sorting by one column
Welcome to the fourth section! Now it's time to learn how to sort the table based on some criteria.
For example, we want to sort the entire audi_cars
table based on the mileage
column. In SQL to sort by column use ORDER BY col_name
statement preceded by WHERE
, FROM
, and SELECT
statements.
123SELECT * FROM audi_cars ORDER BY mileage
Please note, that sorting in SQL is realized in ascending order by default.
Swipe to start coding
From the audi_cars
table extract all the cars sorted by price
.
Рішення
Дякуємо за ваш відгук!
single
Awesome!
Completion rate improved to 2.63
Sorting by one column
Свайпніть щоб показати меню
Welcome to the fourth section! Now it's time to learn how to sort the table based on some criteria.
For example, we want to sort the entire audi_cars
table based on the mileage
column. In SQL to sort by column use ORDER BY col_name
statement preceded by WHERE
, FROM
, and SELECT
statements.
123SELECT * FROM audi_cars ORDER BY mileage
Please note, that sorting in SQL is realized in ascending order by default.
Swipe to start coding
From the audi_cars
table extract all the cars sorted by price
.
Рішення
Дякуємо за ваш відгук!