📜  您可以对子查询使用 where 子句吗 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:27.590000             🧑  作者: Mango

代码示例1
Select C1, C2 from A 
where 
ID in (Select ParentId from B where Status__c='Completed') 
and 
Id NOT IN (Select ParentId from Opportunity where Status__c <> 'Completed')