What is the Access SQL equivalent of Oracle's DECODE function?
Oracle's DECODE has a syntax something like this:
select
decode(Col1,'A','Active','I','Inactive','Other')
from SomeTable;
Translated into pseudo-code, the DECODE might read:
If Col1 = "A", then return "Active", else
If Col1 = "I", then return "Inactive", else
return "Other"
Thanks,
Kim
Oracle's DECODE has a syntax something like this:
select
decode(Col1,'A','Active','I','Inactive','Other')
from SomeTable;
Translated into pseudo-code, the DECODE might read:
If Col1 = "A", then return "Active", else
If Col1 = "I", then return "Inactive", else
return "Other"
Thanks,
Kim