SELECT EA7RECORDS.FIRSTNAME, EA7RECORDS.LASTNAME, EA7COURSES.COURSENAME, TABLEENTRIES.DESCRIPTION AS [Marking Column], EA7ACADEMICYEARS.DESCRIPTION AS [Academic Year], EA7MARKINGCOLUMNS.DESCRIPTION, EA7TRANSLATIONENTRIES.GRADE, EA7STUDENTGRADES.GRADEVALUE

FROM ((EA7MARKINGCOLUMNS
INNER JOIN TABLEENTRIES ON EA7MARKINGCOLUMNS.DESCRIPTION = TABLEENTRIES.TABLEENTRIESID)
INNER JOIN (((((EA7RECORDS
INNER JOIN EA7STUDENTS ON EA7RECORDS.EA7RECORDSID = EA7STUDENTS.EA7RECORDSID)
INNER JOIN (EA7STUDENTCOURSES
INNER JOIN EA7COURSES ON EA7STUDENTCOURSES.EA7COURSESID = EA7COURSES.EA7COURSESID) ON EA7STUDENTS.EA7STUDENTSID = EA7STUDENTCOURSES.EA7STUDENTSID)
INNER JOIN EA7SESSIONS ON EA7STUDENTCOURSES.EA7SESSIONSID = EA7SESSIONS.EA7SESSIONSID)
INNER JOIN EA7ACADEMICYEARS ON EA7SESSIONS.EA7ACADEMICYEARSID = EA7ACADEMICYEARS.EA7ACADEMICYEARSID)
INNER JOIN EA7STUDENTGRADES ON EA7STUDENTCOURSES.EA7STUDENTCOURSESID = EA7STUDENTGRADES.EA7STUDENTCOURSESID) ON EA7MARKINGCOLUMNS.EA7MARKINGCOLUMNSID = EA7STUDENTGRADES.EA7MARKINGCOLUMNSID)
LEFT JOIN EA7TRANSLATIONENTRIES ON EA7STUDENTGRADES.EA7TRANSLATIONENTRIESID = EA7TRANSLATIONENTRIES.EA7TRANSLATIONENTRIESID

ORDER BY EA7RECORDS.LASTNAME, EA7COURSES.COURSENAME

Disclaimer: Blackbaud provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Blackbaud Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.