【发布时间】:2011-12-13 03:19:50
【问题描述】:
我想要一个查询来产生以下结果..
产生在 table1 和 table2 中但不在 table3 中的记录。
每个表中有超过 10,000 条记录..所以我正在寻找一个高效的记录。在所有表中 Cono 是主键..
详细的表格。
表 1:-
Cono
th-123
th-124
th-125
表 2:-
Cono
th-234
th-245
th-256
表 3:-
Cono
th-124
th-125
th-256
现在我想有以下记录
结果表:-
Cono
th-123
th-234
th-245
【问题讨论】:
标签: sql sql-server sql-server-2005