I have a list of users and a list of roles. I d like to extract reports of roles that users should have but don t and roles that they do have but shouldn t. For example
User, Dept, Role Jane, Manager, Add Jane, Manager, Modify Fred, Clerk, Modify Fred, Clerk, Inquire Dept, Task Manager, Add Manager, Modify Manager, Delete Manager, Inquire Clerk, Inquire Clerk, Add
My query should indicate that Jane is missing delete and inquire and Fred should not have modify. Currently I m getting many duplicates as whenver I say something like manager s task <> role s task it s including records such as Add <> Modify.
感谢任何帮助。