将子查询转换为连接以进行执行

时间:2015-08-12 20:30:48

标签: sql

任何人都可以帮助我。我正在尝试将以下子查询转换为连接。

    SELECT u.iuid
FROM cfn_security.dbo.users u WITH (NOLOCK)
WHERE iobjid2site IN (
        SELECT iAssociateUser2Site
        FROM cfn_security.dbo.associations WITH (NOLOCK)
        WHERE iAppID = 32 -- forms/case tracking association
            AND iUID = 19899
        )

0 个答案:

没有答案