Administration needs a combined contact directory of all doctors and patients. Return full_name, email, phone, and a contact_type column ('Doctor' or 'Patient'). Use UNION ALL. Order by contact_type, full_name.
Schema
🔑idINT
first_nameTEXT
last_nameTEXT
date_of_birthTEXT
genderTEXT
emailTEXT
phoneTEXTNULL
blood_typeTEXT
cityTEXT
stateTEXT
🔗insurance_idINTNULL
created_atTIMESTAMP
postgresql
Run your query to see results
Press Ctrl + Enter to execute