HOLA A TODOS, ESTOY TRATANDO DE HACER ESTA CONSULTA, PERO NO SE COMO
CONVERTIR 'N' A N Ó 'HH' A HH , ESPERO QUE ME AYUDEN.
DE ANTEMANO MUCHAS GRACIAS
Select Cat_Estudios.Cve_Estudio,Descripcion,
isnull(Precio_N, 0) as Precio, cat_Estudios.Moneda,
DATEADD(
(case Unidad_Entrega_N
when 0 then 'N'
when 1 then 'HH'
when 2 then 'D'
when 3 then 'WW'
when 4 then 'M'
when 5 then 'YYYY'
End)
,UNIDAD_ENTREGA_N,getdate()) as Entregar,
cat_Estudios.CONDICIONES_PACIENTE,
Cat_Estudios.Tipo
from cat_Estudios,ESTUDIOS_PRECIOSXEMPRESA
Where cat_Estudios.Cve_Estudio=ESTUDIOS_PRECIOSXEMPRESA.Cve_Estudio
And Cat_Estudios.Tipo=ESTUDIOS_PRECIOSXEMPRESA.Tipo
And Cve_Empresa=0
And cat_Estudios.Cve_Estudio='TESTOLIBRE'
And cat_Estudios.Tipo='ESTUDIO'
Leer las respuestas