Секція 1. Розділ 4
single
Retrieving Distinct Rows
Свайпніть щоб показати меню
Note that the SELECT statement returns all rows in a given column. However, what if we don't need all the values from a column, especially when they are duplicated, and we only need unique values?
For such cases, it is convenient to use the keyword DISTINCT, placed immediately before the column names. Let's take a look at an example:
12SELECT DISTINCT region FROM country;
Завдання
Swipe to start coding
Write an SQL query to retrieve distinct (unique) continent values from the country table.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 4
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат