Subject | Oracle DECODE equivalent |
---|---|
Author | Javier Soques |
Post date | 2003-04-22T17:06:06Z |
Does anyone know how can I use an equivalent to Oracle´s DECODE in
a
SELECT. For example
select decode(IN_TIPO_ACCION,'IR','1','0')as FIELD1 from ACCIONES
In pseudo code DECODE is like:
IF (IN_TIPO_ACTION = 'IR') THEN
'1'
ELSE
'0'
END IF
Thanks
Javier
a
SELECT. For example
select decode(IN_TIPO_ACCION,'IR','1','0')as FIELD1 from ACCIONES
In pseudo code DECODE is like:
IF (IN_TIPO_ACTION = 'IR') THEN
'1'
ELSE
'0'
END IF
Thanks
Javier