#1056

Subscriptions to Close

Step 3: for each user, keep the earliest active subscription with status = 'active' and mark all later active subscriptions as extras to close. Return the id values of those extra subscriptions, sorted by id.

Eksempel på forventet output

Sådan ser et korrekt svar ud — dets rækketal er dets eget og behøver ikke at matche skematabellerne.

id
301

Resultatet af din forespørgsel vises her