Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/06/2013, 11:22
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Si existe valor tomarlo, si no tomar otro valor

sip con un simple

Código SQL:
Ver original
  1. SELECT
  2. CASE WHEN fecha_estimada_recepcion='' OR isnull(fecha_estimada_recepcion,'')='' THEN fecha_real_recepcion ELSE fecha_estimada_recepcion END AS fecha FROM tabla

saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me