Du kan använda DISTINCT
:
SELECT DISTINCT studid FROM registration WHERE courseid IN ('100', 101');
eller GROUP BY
:
SELECT studid FROM registration WHERE courseid IN ('100', '101') GROUP BY studid;
Du kan använda DISTINCT
:
SELECT DISTINCT studid FROM registration WHERE courseid IN ('100', 101');
eller GROUP BY
:
SELECT studid FROM registration WHERE courseid IN ('100', '101') GROUP BY studid;