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

Odotetun tulosteen näyte

Näin oikea vastaus näyttää — sen rivimäärä on omansa, eikä sen tarvitse vastata skeeman tauluja.

id
301

Kyselysi tulos näkyy tässä