【发布时间】:2016-10-06 05:45:39
【问题描述】:
我正在尝试在 SQL Developer 中使用 SET 运算符获取计数结果。
我必须找出有多少“attribute1”在“table_name1”中但不在“table_name2”中
基本上我想要从以下查询中得到的结果,但使用 SET 运算符。
SELECT count(distinct <attribute1>)
FROM <table_name1>
WHERE <attribute1> IS NOT (SELECT <attribute1>
FROM <table_name2>);
谁能帮帮我?
【问题讨论】:
标签: sql oracle set-operations