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.
Uzorak očekivanog izlaza
Ovako izgleda ispravan odgovor — broj redaka je njegov vlastiti, ne mora se podudarati s tablicama sheme.
| id |
|---|
| 301 |
Prijavi se da vidiš povijest predaja
PrijavaPrijavi se da koristiš AI mentora
Prijava