Using a CTE, create a patient visit summary that shows each patient's name, total visits, completed visits, and completion rate (percentage of visits that are completed). Only include patients with at least 3 visits. Round the rate to 1 decimal.
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