I have a permissions table that stores UserID and PermissionID. This table has records that links a UserID's to PermissionID's where a user can have multiple permissions.
Column1=UserID, Column2=PermissionID
1 34
1 75
1 98
2 75
2 21
3 75
4 75
I am trying to write a query that will find which permission id's are common to all users and which are 'ala cart'. This seems like it should be simple but I cannot figure it out.
In the above example data, I'd like to retrieve 75 as being a common permission, and 34,98,21 being ala cart.