Users assigned to both variants
Ninja Van's experiment platform is supposed to assign each user to exactly one variant and keep them there. A bug in the assignment service means some users were bucketed twice, which contaminates the comparison.
From assignments, return the user_id of every user assigned to more than one distinct variant, ordered by user_id.
Schema
| id | SERIAL |
| user_id | INT |
| variant | TEXT |
| assigned_at | TIMESTAMP |
Basic
The example input, expected output, and walkthrough for this question unlock with a Basic plan.
Basic
The reference solution and walkthrough for this question unlock with a Basic plan.
Basic
This is a Basic question
Premium practice questions unlock with a Basic plan. The full solution, expected output, and grading are available to Basic members.
RM 25/mo · cancel anytime