Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
孊ぶ Retrieving Distinct Rows | Section
Introduction to SQL

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:

12
SELECT DISTINCT region FROM country;
タスク

スワむプしおコヌディングを開始

Write an SQL query to retrieve distinct (unique) continent values from the country table.

解答

Switch to desktop実践的な緎習のためにデスクトップに切り替える䞋蚘のオプションのいずれかを利甚しお、珟圚の堎所から続行する
すべお明確でしたか

どのように改善できたすか

フィヌドバックありがずうございたす

セクション 1. 章 4
single

single

AIに質問する

expand

AIに質問する

ChatGPT

䜕でも質問するか、提案された質問の1぀を詊しおチャットを始めおください

some-alt