SELECT
`student`.`ID`,
`student`.`PREFIX`,
`student`.`FIRSTNAME`,
`student`.`LASTNAME`,
`student`.`xLevel`,
`student`.`xYearth`
FROM
`checktime` JOIN
`student`
WHERE
`student`.`ID` NOT IN ( SELECT
`student`.`ID`
FROM
`checktime` ,
`student`
WHERE
`checktime`.`DateId` = '2009-04-19' AND
`checktime`.`Student_ID` = `student`.`ID`)
FROM `student`
WHERE
`student`.`ID` NOT IN
(
SELECT `student`.`ID`
FROM `student`
inner join `checktime`
on student.id = checktime.student_id
WHERE
`checktime`.`DateId` = '2009-04-19'