SELECT 사람, KEY FROM TAB WHERE 사람 = 'A' AND KEY NOT IN (SELECT KEY FROM TAB WHERE 사람='B') ; ------------------------------------------------------ SELECT 사람, KEY FROM TAB WHERE 사람 = 'A' AND KEY IN ( SELECT KEY FROM TAB GROUP BY KEY HAVING 1 = COUNT(*) ); -------------------------------------------------------------------- SELECT 사람, KEY FROM TAB WHERE 사람 ='A' AND KEY IN ( SELECT KEY FROM TAB WHERE 사람 ='A' MINUS SELECT KEY FROM TAB WHERE 사람 ='B' ); 등등등....?