Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/09/2014, 10:20
CrepuX
 
Fecha de Ingreso: mayo-2007
Mensajes: 35
Antigüedad: 17 años
Puntos: 0
Respuesta: Añadir campo a vista y unificar con otro

Gracias por responder Libras

Si pongo:

(. . .)
CASE WHEN (DATEDIFF(dd, CONVERT(date, GETDATE(), 103), o.FchPrimerVto) < 30) THEN '1M'
WHEN (DATEDIFF(dd, CONVERT(date, GETDATE(), 103), o.FchPrimerVto) < 90) THEN '3M'
ELSE '6M'end AS Plazo
(. . .)

Me sigue saliendo: "Arithmetic overflow error converting expression to data type datetime."