Hi everybody!
In Informix or Oracle there is a "decode" function. What it does is
converts some available values in the field and changes to
whatewer you ask. For examle:
SELECT employee_name, DECODE(employee_code, "A", "1", "B",
"2", "C", "3"
FROM emp_table
(It will change "A" value to 1, "B" to 2 and so on.)
Is there any "decode" function available in Micorosoft SQL syntax?
Thanks in advance,
Rostik
In Informix or Oracle there is a "decode" function. What it does is
converts some available values in the field and changes to
whatewer you ask. For examle:
SELECT employee_name, DECODE(employee_code, "A", "1", "B",
"2", "C", "3"
FROM emp_table
(It will change "A" value to 1, "B" to 2 and so on.)
Is there any "decode" function available in Micorosoft SQL syntax?
Thanks in advance,
Rostik