-2
如果有两个表。表A在表B中具有table_code作为PK及其FK。 如何设计查询以使结果显示表A中但不在表B中的table_code的所有值?女士访问查询
试过所有三个连接 试过标准为null与is not null
如果有两个表。表A在表B中具有table_code作为PK及其FK。 如何设计查询以使结果显示表A中但不在表B中的table_code的所有值?女士访问查询
试过所有三个连接 试过标准为null与is not null
尝试
SELECT tableA.table_code
FROM tableA LEFT JOIN tableB ON tableA.table_code = tableB.table_code
WHERE (((tableB.table_code) Is Null));
如果这没有帮助,告诉我们你试过SQL。
你能试试吗? SELECT tableA.table_code FROM tableA INNER JOIN tableB ON tableA.table_code <> table2.table_code –