#1116

Each rider's first trip

For a welcome campaign we need each rider's first trip. For every rider, find the earliest trip by start time; on a tie, take the trip with the smaller id. Return rider_id and trip_id, ordered by rider.

Ukážka očakávaného výstupu

Takto vyzerá správna odpoveď — počet riadkov je jej vlastný, nemusí sa zhodovať s tabuľkami schémy.

trip_idrider_id
11
22
43

Tu sa zobrazí výsledok vášho dotazu