I have two tables in MS Access. One an Appointment table and one a Slot table. Like so:

Now I would like to select every record from the slot table and if there is a record with TeacherID = “CR” in the appointment table I would like it to display the StudentID.
This is the SQL I have so far:
SELECT Slot.SlotNumber, Slot.SlotTime, Appointment.TeacherID
FROM Slot LEFT JOIN Appointment ON Slot.SlotNumber = Appointment.SlotNumber
WHERE Appointment.TeacherID="CR"
However this only selects the slots where there is a record in the Appointment table. Any suggestions? Thanks in advance!
If I understand you correct. You do not want the
wherestatement. Instead put it in theLEFT JOIN. Like this: