📜  mysql select where not in multiple tables - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:55.385000             🧑  作者: Mango

代码示例1
SELECT inactive.id
FROM inactive
WHERE NOT EXISTS (select null from renamed where renamed.id = inactive.id)
AND NOT EXISTS (select null from returned where returned.id = inactive.id)