SQLDISTINCTtutorial
What is DISTINCT in SQL? Unique values for beginners
DISTINCT means "remove duplicates". Plain words: unique values of a column or combination of columns, the difference from GROUP BY, NULL handling, and the PostgreSQL-specific DISTINCT ON for "one row per group". With before/after tables and common pitfalls.
1 min læsningSQL · DISTINCT · tutorial
Øv dig på rigtige opgaver
Løs opgaver i SQL-træneren med øjeblikkelig bedømmelse og hints.
Åbn træneren
DISTINCTis the command for "don't return duplicate rows". The simplest way to get unique values of a column or combination of columns.This article is currently in Russian. The full English translation is on the way.