Distinct

select distinct student_nr
from RESULTAAT;
Uitvoer:

tabular218

Deze query geeft alle verschillende studentnummers uit de resultatentabel. Zonder distinct zou gewoon de hele kolom, inclusief dubbele nummers, gegeven worden.