0

我有这个 SQL 查询,我想在 Linq 中使用它。我对他们如何在主查询中使用组加入别名感到困惑?

SELECT '1st' AS POSITION , user as USR1, actiondate as ad1 , user2 as USR2, actiondate2 as ad2 ,user3 as USR3, actiondate3 as ad3, First as Co, * FROM APPLICATIONS A INNER  JOIN
    ( SELECT MAX(ROW) AS MAXDATE ,APPLICATIONNO FROM FIRSTM
    GROUP BY APPLICATIONNO) SULA1
    ON A.APPLICATIONNO=SULA1.APPLICATIONNO
    INNER JOIN FIRSTM FSTATUS
    ON SULA1.APPLICATIONNO=FSTATUS.APPLICATIONNO AND
    SULA1.MaxDate = FSTATUS.ROW
    INNER JOIN APPLICATIONAPPLICANTS ON A.APPLICATIONNO
     =APPLICATIONAPPLICANTS.APPLICATIONNO
4

0 回答 0