标签: proc-sql
我有以下两个SQL表(在proc SQL中):
+----+------+ | id | age | +----+------+ | 4 | 40 | +----+------+
所需的输出是:如何在proc sql中获得此输出
{{1}}
答案 0 :(得分:0)
试试这个
SELECT A.* FROM A NATURAL LEFT JOIN B WHERE B.id IS NULL
<强> SQL FIDDLE DEMO 强>
答案 1 :(得分:0)
select * from A where not exists(select * from b where B.ID=A.Id)