I am trying to translate plsql (oracle) to sql for access (sql server).
This is the plsql line of code:
The follwing are things I've tried, but none of them work:
I'm doing this in Access if that makes any difference.
Thanks for any help.
This is the plsql line of code:
Code:
decode(alleg_determ_ind, 'Y', 'Y') as md
The follwing are things I've tried, but none of them work:
Code:
Select.....
CASE alleg_determ_ind WHEN 'Y' THEN 'Y' ELSE 'N' END md
CASE alleg_determ_ind WHEN 'Y' THEN 'Y' ELSE 'N' END AS md
CASE (alleg_determ_ind WHEN 'Y' THEN 'Y') ELSE 'N' END md
SWITCH(alleg_determ_ind WHEN 'Y' THEN 'Y' ELSE 'N' END
from......
I'm doing this in Access if that makes any difference.
Thanks for any help.