What is the id of the appointment that started most recently?
SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1
appointment that started most recently refers to MAX(START date/time); id of the appointment refers to appointmentid;