我有这个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