帮助我成为新手。我正在尝试提取可能在一个表中但不在另一个表中的数据。
这将返回相同信息的多行。
SELECT DISTINCT *
FROM Schools, Schools_Current
WHERE ([Schools].[School_ID]<>[Schools_Current].[School_ID]);
答案 0 :(得分:1)
你可以试试这个:
SELECT DISTINCT *
FROM Schools_Current
WHERE School_ID NOT IN (
SELECT School_ID
FROM Schools
)