[英]Where not exists condition syntax
我试图排除符合某些条件的记录。 我正在尝试使用WHERE NOT Exists语法。
但是不起作用。
select b.*
from Staging.Siebel.UCM."S_CONTACT" b
where not exists (select *
from Staging.Siebel.UCM.“CX_CDI_MERGE” c
where b.cid_num = c.X_NEW_CDI_ID
);
在SQL中,您应该能够使用select ... where not in (select ...)
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.