List the patient id for all the appointments.
select patient from appointment
What are the names of patients who have made appointments?
select name from appointment as t1 join patient as t2 on t1.patient = t2.ssn