📜  如果在某个表中不相等,则获取 id - SQL 代码示例

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

代码示例1
SELECT * FROM table1
INNER JOIN table2 ON table2.empid = table1.empid AND table2.alt_id <> table1.alt_id