Second trip pricier than the first
Marketing checks whether spending grows. Find riders whose second trip by time was more expensive than their first. Return rider_id ascending.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| rider_id |
|---|
| 1 |
| 3 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in