我正在尝试使用 SQL Developer 中的 SET 运算符获取计数结果。
我必须找出“table_name1”中有多少“attribute1”但不在“table_name2”中
本质上,我想要从以下查询中获得的结果,但使用 SET 运算符。
SELECT count(distinct <attribute1>)
FROM <table_name1>
WHERE <attribute1> IS NOT (SELECT <attribute1>
FROM <table_name2>);
谁能帮帮我吗?