ChallengeTransportSQL+20 XP
Data Analytics case 29: SQL min & max for Transport
Scenario
You are a data professional. A delivery van fleet has an issue: the report needs the best and worst delay_minutes in one line. As a BI Analyst, you are tasked to solve it.
Question
Show the smallest and largest values.
Your task
- Read the problem
- Write your solution in the editor
- Press Check my answer
- Deliverable: Lowest and highest
- On success it is published as its own portfolio project
SQL min & maxData AnalyticsProblem solving
Read the simple theory: Root-cause analysisData Analytics · Problem Solving & Root Cause Analysis — question 29 of 30
1. Choose your dataset
Pick an industry and a size. Your code and results change to match.
sql editorbus_trips
Snippets
💡 Explain my whole code, line by line (hover any word in the editor for a tip)
🌈 In short — no coding words
📂 Opens the "bus_trips" 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
bus_trips
The tiny starter data. Bigger data scrolls.
Fields
| trip_id | route | delay_minutes |
|---|---|---|
| T1 | R1 | 5 |
| T2 | R2 | 12 |
| T3 | R1 | 8 |
| T4 | R3 | 2 |
Transport 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.
- Min
- Max