hard20 pts · first answer countssqldebugging
NOT IN returns no rows
banned_users has one row where user_id is NULL. How many rows does this query return?
SELECT id FROM users WHERE id NOT IN (SELECT user_id FROM banned_users);
Discussion 0
Join free to post in the discussion.
Related questions
- Preventing SQL injectionFull Stack Developer
- Empty req.body in ExpressFull Stack Developer
- Listing users with zero ordersFull Stack Developer
- Comparing a column to NULLFull Stack Developer
- What an index costsFull Stack Developer
- Moving credits between accountsFull Stack Developer
- Composite index column orderFull Stack Developer
- Two agents edit one ticketFull Stack Developer