Sie könnten DISTINCT
verwenden :
SELECT DISTINCT studid FROM registration WHERE courseid IN ('100', 101');
oder GROUP BY
:
SELECT studid FROM registration WHERE courseid IN ('100', '101') GROUP BY studid;
Sie könnten DISTINCT
verwenden :
SELECT DISTINCT studid FROM registration WHERE courseid IN ('100', 101');
oder GROUP BY
:
SELECT studid FROM registration WHERE courseid IN ('100', '101') GROUP BY studid;