Forum Replies Created

Viewing 2 posts - 1 through 3 (of 3 total)

  • RE: Joins nightmare

    Thanks everyone! I've got it working like this:

    SELECT tblStudent.anStudentId,

    tblStudent.txtFullName,

    tblStudent.txtMobile,

    (SELECT TOP 1 txtClassCode

    FROM tblStudentClass

    INNER JOIN tblClass ON (anClassID=lngClass)

    WHERE (tblStudentClass.lngStudent=tblStudent.anStudentID)

    ORDER BY dtLatestEndDate DESC) As LastClassCode

    FROM tblStudent

    WHERE

    EXISTS (SELECT 1 FROM tblStudentClass WHERE tblStudentClass.lngStudent...

  • RE: Joins nightmare

    Thank you for your quick reply! I will try this, but one quick question. Table tblStudentClass now holds half a million records, how will it affect performance if...

Viewing 2 posts - 1 through 3 (of 3 total)