I am trying to read records that match multiple values in the same field. Example table : A
UserID License
1 DOG
1 CAT
1 FISH
2 DOG
2 CAT
3 FISH
4 CAT
4 DOG
4 FISH
5 CAT
5 FISH
How can I pull the UserIDs that have all three Licenses DOG, CAT and FISH ?
I am not sure how I could use INNER JOIN here since there are no two tables. What is the best approach here ?
Thank you PG