Does someone know if the DECODE statement used in Oracle can be found in SQL
ANYwhere. What's it's name?
Thanks for your help!
Jeff
APG
Sybase Developers Network
http://sdn.sybase.com/sdn/mec/mec_home.stm
Hope this will help you to answer my previous question. :-)
Jeff
APG
"Jim Egan" <dba...@eganomics.com> a écrit dans le message news:
MPG.136b85818...@forums.sybase.com...
In Oracle:
select decode( LIC_TYPE,
'U', 'Unlicensed',
'L', 'Learner',
'F', 'First-Year Probationary',
'P', 'Probationary',
'T', 'Endorsed Trainer',
'S', 'Standard',
'X', 'Disqualified',
'H', 'Held/Suspended',
'unknown') license
from drivers;
In ASA:
select (CASE LIC_TYPE
when 'U' then 'Unlicensed',
when 'L' then 'Learner',
when 'F' then 'First-Year Probationary',
when 'P' then 'Probationary',
when 'T' then 'Endorsed Trainer',
when 'S' then 'Standard',
when 'X' then 'Disqualified',
when 'H' then 'Held/Suspended',
else 'unknown'
end) as license
from drivers;
Decode is not ANSI-standard, and (I believe) the CASE expression is...
Paul Horan
VCI www.twoplus.com
Springfield, MA
"Jeff Raymond" <si...@rayonline.com> wrote in message
news:6tg2n0Ir$GA....@forums.sybase.com...