In essence, I have a couple of tables: users, groups, articles, Permissions for articles, and Groupmemberships... So, on a page, it opens up the article and looks for what groups have been given access to the article... It then looks at the userID (session variable) and determines what groups the user belongs to.... you I'll have 2 lists, the groups the user is in and the the groups that have access to the article... If there is any common between the two, then the user has access... otherwise they don't.
So...
User Group IDs^^^^^^^^^^^Article Group IDs
1^^^^^^^^^^^^^^^^^^^3
3^^^^^^^^^^^^^^^^^^^4
7^^^^^^^^^^^^^^^^^^^2
This person would have permission because the user belongs to one or more groups that have permission...
or...
User Group IDs^^^^^^^^^^^Article Group IDs
1^^^^^^^^^^^^^^^^^^^8
3^^^^^^^^^^^^^^^^^^^4
7^^^^^^^^^^^^^^^^^^^2
This person would get an access denied error....
So, my question is, how would I compare the two to see if there are any common elements in ASP or SQL? The data is in a MS SQL database...
Thanks,

