#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.

Exempel på förväntad utdata

Så här ser ett korrekt svar ut — radantalet är dess eget, det behöver inte matcha schematabellerna.

id
301

Ditt frågeresultat visas här