Chapter 5 · JOINs
52. Patients with Insurance Details
Medium20 XPHealthcare
List all patients along with their insurance provider name and plan type. Include patients who have no insurance (insurance_id is NULL). Return first_name, last_name, provider_name, and plan_type.
Tables
- PKidINT
- first_nameTEXT
- last_nameTEXT
- date_of_birthTEXT
- genderTEXT
- emailTEXT
- phoneTEXT
- blood_typeTEXT
- cityTEXT
- stateTEXT
- FKinsurance_id→ insurance.idINT
- created_atTIMESTAMP
- PKidINT
- provider_nameTEXT
- plan_typeTEXT
- coverage_amountREAL
- copayREAL
- deductibleREAL
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.