EntitySQL'IN子查询

时间:2012-02-10 13:17:46

标签: subquery entity-sql

我有以下T-SQL:

SELECT Cust.[CompanyName] FROM Customers AS Cust WHERE ( Cust.[CompanyName] IN (SELECT CustSQ1.[CompanyName] AS [Customer Company name] FROM Customers AS CustSQ1 WHERE ( CustSQ1.Country = 'Argentina' ) ) )

我如何在EntitySQL中做同样的事情?

1 个答案:

答案 0 :(得分:1)

我找到了解决方案。对应的EntitySQL是: "SELECT Cust.[CompanyName] FROM (SELECT CustSQ1.[CompanyName] FROM Customers AS CustSQ1 WHERE ( CustSQ1.Country = 'Argentina' )) AS Cust"