
June 21st, 2012, 10:20 AM
|
|
Contributing User
|
|
Join Date: Jan 2003
Location: Paris Uppland
|
|
Code:
select Attendant.name,
case when AttendanceRecord.AttendanceDate = <given date> then 'Present' else 'Not present' end
from attendant
left
join AttendanceRecord
on attendant.pk = AttendanceRecord.fk
and AttendanceRecord.AttendanceDate = <given date>
Change column names as apropriate.
|