Skip to main content
All Problems
medium0% acceptance

Patients with Visits in Multiple Months

Identify highly engaged patients. Find patients who have had visits in 3 or more distinct calendar months. Return the patient's first name, last name, and the number of distinct months they visited. Sort by distinct months descending.

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