`daily_chart` holds the daily chart position of each track (1 = best). A *climb* is an improvement from one day to the NEXT calendar day for the same track: climb = previous position - today's position, counted only when the track also charted on the previous calendar day and the climb is positive. For each track that ever climbed, return its single biggest climb: `title`, `climb_date` (the day it reached the better position; earliest date if tied), `from_position`, `to_position`, `climb`. Order by `climb` DESC, then `title`.
| Column | Type |
|---|---|
| chart_date | DATE |
| track_id | INTEGER |
| position | INTEGER |
| chart_date | track_id | position |
|---|---|---|
| 2026-07-01 | 1 | 20 |
| 2026-07-02 | 1 | 12 |
| 2026-07-03 | 1 | 5 |
| 2026-07-04 | 1 | 6 |
| 2026-07-01 | 2 | 3 |
| 2026-07-02 | 2 | 1 |
| 2026-07-03 | 2 | 2 |
| 2026-07-01 | 3 | 40 |
| Column | Type |
|---|---|
| track_id | INTEGER |
| title | TEXT |
| track_id | title |
|---|---|
| 1 | Neon Rain |
| 2 | Paper Moon |
| 3 | Slow Tide |
| 4 | Glass City |
| 5 | Quiet Hours |
| title | climb_date | from_position | to_position | climb |
|---|---|---|---|---|
| Neon Rain | 2026-07-02 | 20 | 12 | 8 |
| Paper Moon | 2026-07-02 | 3 | 1 | 2 |
| Slow Tide | 2026-07-04 | 10 | 9 | 1 |
Solve it in the live editor on this page — run on sample data, then submit against hidden tests.
‹ Listening Streaks of 3+ Days · Seller Month-over-Month GMV Growth ›
{{ totalCount }} questions in the style asked at Amazon, Microsoft, Google, Meta, Flipkart and more — {{ hardPct }}% Hard. Write SQL in a real database engine in your browser, run it on sample data, then evaluate against hidden tests.
Company tags show where this type of question is commonly reported in interviews. Questions, data and solutions are written by TechTown.
{{ cur.statement }}
No submissions yet. Press Evaluate to submit your query.
{{ solutionSql }}
{{ out.error }}
You have solved your 3 free questions — nice work! Log in (free) to unlock all 150 questions, keep your streak and appear on the leaderboard.