Hey guys,
First, let me describe what I want to accomplish. I have a table that looks like this:
USER ID SCREEN Inquiry Change Delete
_______ ________ _______ ______ ______
2345 PR23 I C D
I want a query to display the word "ALL" if the users have I, C and D permissions.
Is this possible to do with a Case statement? Something like
CASE WHEN Inquiry = 'I" THEN 'ALL'
The problem is how can I do a CASE for multiple values? 'ALL' is not valid if they only have 'I'. Can you do nested case statements??
First, let me describe what I want to accomplish. I have a table that looks like this:
USER ID SCREEN Inquiry Change Delete
_______ ________ _______ ______ ______
2345 PR23 I C D
I want a query to display the word "ALL" if the users have I, C and D permissions.
Is this possible to do with a Case statement? Something like
CASE WHEN Inquiry = 'I" THEN 'ALL'
The problem is how can I do a CASE for multiple values? 'ALL' is not valid if they only have 'I'. Can you do nested case statements??