#1054

Duplicate Active Subscriptions

Subscription investigation, step 1: find users who have more than one subscription with status = 'active'. Return user_id, one row per user, sorted by user_id.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

user_id
1

Your query result will appear here