Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailemVyřešeno LEFT JOIN v Accessu

Tak už jsem na to přišla. Access vyžaduje přidání závorek:
SELECT GU2C.CPID AS CPID, E.CPID AS ECPID, E.EID AS EID, E.TOTALSTUDYTIME AS STUDY_LENGTH, E.ABSOLVED AS STATUS, E.ENDLEARN AS ABSOLVATION_DATE, TR.TID AS TID, TR.ATTEMPT AS ATTEMPT, TR.SCORE AS RESULT, TR.MINSCORE AS MINSCORE, TR.MAXSCORE AS MAXSCORE, TR.CREATED AS DATE_WHEN_ABSOLVATED_TEST, E.TIME_IN_COURSE AS TIME_IN_COURSE, E.LAST_OPENED AS LAST_OPENED, E.PRINTCOUNT AS PRINTCOUNT, E.LASTPRINT AS LASTPRINT, GU2C.VALIDFROM AS VALIDFROM, GU2C.VALIDTO AS VALIDTO
FROM (((GU2C LEFT JOIN ENROLLMENTS AS E ON (E.CPID = GU2C.CPID AND E.USRID = 1))
LEFT JOIN TESTRESULTS AS TR ON (E.CPID = TR.CPID AND E.USRID = TR.USRID))
LEFT JOIN NOMINATION AS N ON (N.CPID = GU2C.CPID AND N.USRID = 1))
LEFT JOIN TERMS AS TM ON N.TERMID = TM.TERMID
WHERE (GU2C.USRID = 1)

a tohle funguje jak v Accessu, tak i v MS SQL

Reakce na odpověď

1 Zadajte svou přezdívku:
2 Napište svou odpověď:
3 Pokud chcete dostat ban, zadejte libovolný text:

Zpět do poradny