Scheduling wants to find doctors with the fewest visits. Return the doctor's full name (first_name || ' ' || last_name) as doctor_name, specialty, and visit_count. Include only doctors with fewer than 20 visits. Sort by visit_count ascending, then by last_name.
Schema
🔑idINT
first_nameTEXT
last_nameTEXT
specialtyTEXT
🔗department_idINT
emailTEXT
phoneTEXT
hire_dateTEXT
salaryREAL
postgresql
Run your query to see results
Press Ctrl + Enter to execute