Ver Mensaje Individual
  #2  
Antiguo 27-01-2004
Avatar de Investment
Investment Investment is offline
Miembro
 
Registrado: may 2003
Posts: 378
Reputación: 22
Investment Va por buen camino
Lightbulb

Y por que no lo cambias directamente en la Select?

Es bastante mas cómodo:
Código:
SELECT 'DEFN'= 
      CASE 
         WHEN DEFL='A' THEN 'A'
         WHEN DEFL<>'A' THEN DEFN
      END,
      Codigo , Materia , DEFL
from NombreTabla
Esto funciona correctamente sobre SQL SERVER.
__________________
Saludos,
Peter Investment
Responder Con Cita