Student attendance can be recorded by class or by day. Be sure to keep that in mind when writing your query.
SELECT * FROM DBO.EA7RECORDS AS R JOIN EA7STUDENTS as S on S.EA7RECORDSID = R.EA7RECORDSID LEFT JOIN EA7ATTENDANCEBYDAY as ADAY ON S.EA7STUDENTSID = ADAY.EA7STUDENTSID LEFT JOIN EA7ATTENDANCEBYCLASS AS ACLASS ON S.EA7STUDENTSID = ACLASS.EA7STUDENTSID
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.