When you ask a shelf for a single field, the same value repeats many times - many authors come from the same country, many readers from the same city. DISTINCT removes the duplicates.
1SELECT kraj FROM autorzy;If five authors come from Greece, the word Greece will appear five times.
1SELECT DISTINCT kraj FROM autorzy;Now each country appears only once. It is like the list of sections in the Pinakes - every subject named a single time.
When you give several fields, DISTINCT removes repeated combinations, not single values:
1SELECT DISTINCT imie, nazwisko FROM czytelnicy;A row disappears only when first name and surname together are the same as in another row.
SELECT DISTINCT miasto FROM czytelnicy;SELECT DISTINCT kraj FROM autorzy;DISTINCT is the scribe's sieve - it sifts the scrolls and keeps only the unique catalog cards.