Skip to content
Advertisement

Access SQL using IN where record must satisfy all values

I have a join statement, like this:

but this returns all records. I would like to pull back the distinct record of an individual that has all values of pl.language_id, not just one or more values. I should note, the values in the IN statement may have 1 or more values

Any ideas on how to do this? I’ve tried changing the IN statement to something like this:

but this returns nothing.

thanks for any help

Advertisement

Answer

You have to group by and count:

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