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 |
Logga in för att se historik över inskick
Logga inLogga in för att använda AI-mentorn
Logga in