The catalog team wants to segment tracks into 5 equal-sized buckets by duration, longest first, to spot unusually long or short tracks.
Return TrackId, Name, Milliseconds, and DurationQuintile (1 = longest), ordered by Milliseconds descending (ties broken by TrackId).
| Column | Type |
|---|---|
| TrackId | INTEGER (Primary Key) |
| Name | TEXT |
| Milliseconds | INTEGER |
Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.