Ver Mensaje Individual
  #2  
Antiguo 19-05-2008
Avatar de RolphyReyes
RolphyReyes RolphyReyes is offline
Miembro
 
Registrado: ago 2004
Ubicación: Santo Domingo
Posts: 285
Reputación: 22
RolphyReyes Va por buen camino
Exclamation

Saludos.

Extraído del Firebird 2.0.1 Release Notes.

Cita:
IIF Expression Syntax Added
O. Loa
IIF (<search_condition>, <value1>, <value2>)
is implemented as a shortcut for
CASE
WHEN <search_condition> THEN <value1>
ELSE <value2>
END
It returns the value of the first sub-expression if the given search condition evaluates to TRUE, otherwise it
returns a value of the second sub-expression.
Example
SELECT IIF(VAL > 0, VAL, -VAL) FROM OPERATION

Espero te sirva.
__________________
Gracias,
Rolphy Reyes
Responder Con Cita