DISTINCT
を使用できます :
SELECT DISTINCT studid FROM registration WHERE courseid IN ('100', 101');
またはGROUP BY
:
SELECT studid FROM registration WHERE courseid IN ('100', '101') GROUP BY studid;
DISTINCT
を使用できます :
SELECT DISTINCT studid FROM registration WHERE courseid IN ('100', 101');
またはGROUP BY
:
SELECT studid FROM registration WHERE courseid IN ('100', '101') GROUP BY studid;