I want to write from a table that will display the results matrix style.
The table contains UserIDs and the Roles they have been granted, for example :-
USERID ROLE
SCOTT SALES ADMIN
SCOTT FINANCE CLERK
SCOTT CREDIT MANAGER
What I want to display is :-
USERID SALES ADMIN FINANCE CLERK CREDIT MANAGER
SCOTT Y Y Y
I know I'll probably need to use DECODE somewhere along the line, but I don't want to have to hardcode the ROLES in a DECODE statement.
Anyone know how to do this without hardcoded values ??
Thanks
The table contains UserIDs and the Roles they have been granted, for example :-
USERID ROLE
SCOTT SALES ADMIN
SCOTT FINANCE CLERK
SCOTT CREDIT MANAGER
What I want to display is :-
USERID SALES ADMIN FINANCE CLERK CREDIT MANAGER
SCOTT Y Y Y
I know I'll probably need to use DECODE somewhere along the line, but I don't want to have to hardcode the ROLES in a DECODE statement.
Anyone know how to do this without hardcoded values ??
Thanks