001Level 1

Chapter 2 · Filtering

15. Total Cancelled and No-Show Visits

Easy10 XPHealthcare

Operations wants to know how many visits were either cancelled or marked as no-shows. Return a single count of visits whose status is 'cancelled' or 'no_show'.

Tables

  • PKidINT
  • FKpatient_id→ patients.idINT
  • FKdoctor_id→ doctors.idINT
  • visit_dateTEXT
  • diagnosisTEXT
  • notesTEXT
  • follow_up_dateTEXT
  • statusTEXT

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.

Peek at the solution?

You can still earn the XP afterwards by submitting a working query — but you'll learn more if you give it one more try.