Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Worst Delay per Route

For every route return the maximum delay in days. Order by max_delay descending, then route.

Table schema

Shipments(id INT PRIMARY KEY, route VARCHAR(10), delay_days INT)

Sample data

id | route | delay_days
1 | R1 | 2
2 | R1 | 5
3 | R2 | 0
4 | R2 | 3
5 | R3 | 5

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.