Skip to content
Advertisement

How do I exclude a user with a specific criteria where every row has the criteria for that user id?

So I have a list of users who every time they have a feature created, a new row with their ID will be created. I would like to exclude all users that have feature B enabled.

I can’t do select USER from TABLE where FEATURE =! 'B' because that will still show USER 100. Any other solution?

Advertisement

Answer

Assuming all users are in this table, you can use aggregation:

If users are actually in another table, I would suggest:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement