Practice tool · SQL & Databases
SQL Practice Tools
Hands-on prompts and sample datasets for query practice and reporting drills.
Practical outputs
Practice tool
Guided SQL lab
Practice operational reporting queries against an Academy-style dataset. The checker validates important SQL habits and shows the expected result shape.
Return active learners with their name, organization, and role, sorted by organization and then learner name.
Practice schema
learners
id, full_name, organization, role, status
| l-101 | Maya Chen | Northfield Health | Operations Lead | active |
| l-102 | Jordan Ellis | Astruvia Demo Partner | IT Coordinator | active |
| l-103 | Priya Shah | Civic Response Group | Continuity Lead | active |
courses
id, title, track, level
| c-201 | Emergency Preparedness Foundations | Preparedness | Beginner |
| c-202 | Cyber Hygiene for Resilient Teams | Cybersecurity | Beginner |
| c-203 | SQL Query Practice Lab | SQL | Beginner |
enrollments
id, learner_id, course_id, status, enrolled_at
| e-301 | l-101 | c-201 | active | 2026-05-01 |
| e-302 | l-101 | c-202 | active | 2026-05-03 |
| e-303 | l-102 | c-202 | active | 2026-05-05 |
quiz_attempts
id, learner_id, course_id, score, completed_at
| q-401 | l-101 | c-201 | 92 | 2026-05-06 |
| q-402 | l-101 | c-202 | 84 | 2026-05-08 |
| q-403 | l-102 | c-202 | 76 | 2026-05-09 |
Query review
Ready to check
Required habits
Query shape matched
The query includes the required concepts for this practice check. Compare the expected output before moving on.
Expected result
This lab validates query structure and shows the expected result set. A future database-backed version can execute user SQL in a sandboxed practice environment.
| full_name | organization | role |
|---|---|---|
| Jordan Ellis | Astruvia Demo Partner | IT Coordinator |
| Priya Shah | Civic Response Group | Continuity Lead |
| Maya Chen | Northfield Health | Operations Lead |
Practice routine
- Write the business question before touching SQL.
- Confirm the base table and join keys.
- Check for duplicate rows before aggregating.
- Sort the report in the order a decision maker needs.