Find Specific Rows
Posted
by H07R0D
on Stack Overflow
See other posts from Stack Overflow
or by H07R0D
Published on 2010-05-25T15:53:55Z
Indexed on
2010/05/25
16:01 UTC
Read the original article
Hit count: 290
I'm trying to build a rather specific query to find a set of user_ids based on topics they have registered to. Unfortunately it's not possible to refactor the tables so I have to go with what I've got.
Single table with user_id and registration_id I need to find all user_ids that have a registration_id of (4 OR 5) AND NOT 1
Each row is a single user_id/registration_id combination. My SQL skills aren't the best, so I'm really scratching my brain. Any help would be greatly appreciated.
© Stack Overflow or respective owner