ProfessionalHealthcareSQL+20 XP
Threshold Filtering: wait_minutes at least 22
Scenario
You are a data professional working with healthcare data. Prepare a reliable reusable result from clinic_visits for a review.
Question
Show visit_id and wait_minutes only for records where wait_minutes is at least 22. Sort the values from smallest to largest.
Your task
- Inspect the provided data and column names
- Show visit_id and wait_minutes only for records where wait_minutes is at least 22. Sort the values from smallest to largest.
- Run your code and compare the result
WHERE and SortingSQL
Read the simple theory: SQLAdvanced · Record Counting & Duplicate Removal — question 22 of 30
1. Choose your dataset
Pick an industry and a size. Your code and results change to match.
sql editorclinic_visits
Snippets
💡 Explain my whole code, line by line (hover any word in the editor for a tip)
🌈 In short — no coding words
📂 Opens the "clinic_visits" table→✅ Shows you the answer
Altogether: this query reads your industry table, picks what you need, and shows the answer as rows.
Start typing to see suggestions. Press Enter to use one. Red marks show the line to fix. Drag a bottom corner horizontally and vertically to resize.
Type your code here ↓
✍️ Tap here to type
Dataset & schema
clinic_visits
The tiny starter data. Bigger data scrolls.
Fields
| visit_id | ward | wait_minutes |
|---|---|---|
| V1 | Kids | 20 |
| V2 | Adults | 45 |
| V3 | Kids | 15 |
| V4 | Elderly | 30 |
Healthcare practice data only.
attempts: 0
▶ Output terminal
$ Press “Check my answer” — results appear here.Your next steps
Each item turns green when your answer includes it.
- Reads the correct table
- Applies the threshold
- Uses the required operation