SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1
What is the id of the appointment that started most recently?
SELECT appointmentid FROM appointment ORDER BY START DESC LIMIT 1
select appointmentid from appointment order by start desc limit value
What is the id of the appointment that started most recently ?