Say I have a link table with two fields, idUser and idPermission, I would like to know how to Select just the users that have a set of permissions. For instance getting just the users that have idPermission of 1, 2 and 3.
idUser idPermission
------ ------------
1 1
1 2
1 3
2 2
2 3
using the table above I would only want to return the rows for idUser 1. Using AND won't return any rows and using IN/OR returns everybody with 1, 2 or 3.
Thanks for any help guys/gals !
idUser idPermission
------ ------------
1 1
1 2
1 3
2 2
2 3
using the table above I would only want to return the rows for idUser 1. Using AND won't return any rows and using IN/OR returns everybody with 1, 2 or 3.
Thanks for any help guys/gals !