谁能告诉我如何编写以下SQL
查询linq
:
SELECT approvaldate, issubmitted, companyemail, *
FROM registrations r
WHERE (r.issubmitted = 'true')
AND (r.approvaldate IS NULL)
AND (companyemail LIKE '%gmail%'
OR companyid IN (SELECT companyid FROM companies
WHERE companyname LIKE '%gmail%')
)
谢谢