select sid,cid from take a where not exists ( select 1 from courses b where a.sid=b.sid and a.cid=b.cid);