Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello

I want to generate a report from the following three tables

1- Roles
2- Users
3- Access Rights

Assume we have the following Roles and Users

1- Manager
a- User A

2- Supervisor
a- User B
b- User C

3- Operator
a- User D
b- User E
c- User F

The table im getting is of the following format

Role ------ User ------ AccessRight

Operator ------ User D --------------- Action A
--------- ------------------- -------- Action B
--------- ------------------- -------- Action C
--------- ------------------- -------- Action D
--------- ------------------- -------- Action E

------ ------ User E --------------- Action A
--------- ------------------- -------- Action B
--------- ------------------- -------- Action C
--------- ------------------- -------- Action D
--------- ------------------- -------- Action E

------ ------ User F --------------- Action A
--------- ------------------- -------- Action B
--------- ------------------- -------- Action C
--------- ------------------- -------- Action D
--------- ------------------- -------- Action E

Supervisor------ User B --------------- Action A
------ ------- -- ------ --------------- Action B
.
.



I want the users to be grouped under each role rather than having to repeat the access rights for each user. I want to have the table with THIS format.

Role ------ User ------ AccessRight

Operator ------ User D --------------- Action A
--------------- User E --------------- Action B
--------------- User F --------------- Action C
--------------- ---- --------------- -- Action D
--------- ------------------- -------- Action F

Supervisor------ User B --------------- Action A

.
.


Any help would be of great assistance... thank you
Posted
Comments
Wendelius 23-Mar-11 10:31am    
Previous post removed since this describes the same issue but more widely

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900