另一个MySQL零下问题


2

我试图实现以下目标:

SELECT id, name FROM t_profiles MINUS (SELECT p.id, p.name FROM t_profiles AS p LEFT JOIN t_skills AS s ON p.id = s.id_employee WHERE s.lvl>0 and s.id_task=1) 

有没有一种简单的方法在MySQL做到这一点?

3
SELECT id, name FROM t_profiles 
WHERE id not in 
    (SELECT p.id FROM t_profiles AS p 
    LEFT JOIN t_skills AS s ON p.id = s.id_employee 
    WHERE s.lvl>0 and s.id_task=1) 

应该做的伎俩。