Ver Mensaje Individual
  #2  
Antiguo 08-05-2008
Avatar de poliburro
[poliburro] poliburro is offline
Miembro Premium
 
Registrado: ago 2004
Ubicación: México D.F
Posts: 3.068
Reputación: 23
poliburro Va por buen camino
Esta te funciona en la mayoria de los motores:
Código SQL [-]
 
select cve_doc, cve_clpv, fecha_doc,can_tot, 
          Case When status  'E' then 'Emitido' 
                   When status  'C' then 'Cancelada' 
           End Case
from fact01 
order by cve_doc
__________________
Conoce mi blog http://www.edgartec.com
Responder Con Cita