Chapter 4 · Aggregations
34. Abnormal Lab Result Percentage
Easy10 XPHealthcare
Quality assurance wants to know the percentage of lab results that are abnormal. Return a single row with the total count, the abnormal count, and the abnormal percentage rounded to one decimal place.
Tables
- PKidINT
- FKvisit_id→ visits.idINT
- test_nameTEXT
- result_valueTEXT
- unitTEXT
- reference_rangeTEXT
- is_abnormalINT
- tested_atTEXT
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.