strawquery PT
All lessons

Lesson 10 of 30

DISTINCT

Today at the studio

Someone is making a poster of every genre the studio has worked in. The first list you send has "Comedy" twice, and Nagi gives you the look he usually saves for the coffee machine.

The idea

A column often repeats the same value many times. SELECT DISTINCT removes duplicate rows from the result.

With several columns, DISTINCT looks at the whole row: two rows are duplicates only when every selected column is equal.

Example

SELECT DISTINCT voice_actor FROM characters

Your turn

0 of 4 questions

Question 1 of 4

Which genres does the studio make? One row per genre.

Unofficial fan project. Titles belong to their creators and rights holders.