Diferencia = Null o is null

20/01/2005 - 16:17 por Pao | Informe spam
Cual es la diferencia entre un is null e = NUll

Gracias por la ayuda

select a.cci_empresa, a.nci_campana, a.nse_archivo, nse_transaccion,
ctp_identificacion,
cci_identificacion, nci_cliente, cno_cliente, ctp_cuenta, cci_cuenta,
nva_monto,
ctx_comunicar, ctx_motivo, ctx_telefono1, ctx_telefono2,
ctx_telefono3,
ctx_telefono4, cdi_email, cdi_cliente, a.ctx_referencia,
ctx_referencia1,
ctx_referencia2, ctx_referencia3, ctx_agente, ces_transaccion,
nqn_intentos,dfm_inicio_campana, dfm_fin_campana,
ctx_Titulo_referencia, ctx_Titulo_referencia1, ctx_Titulo_referencia2,
ctx_Titulo_referencia3
from CALLCENTLINKSRV.db_callcenter.dbo.cc_archivo_transaccion a,
CALLCENTLINKSRV.db_callcenter.dbo.cc_archivo_campana b
where a.nci_campana = @cci_cod_campania
And ces_transaccion = 'P'
and a.cci_empresa = b.cci_empresa
and a.nci_campana = b.nci_campana
and a.nse_archivo = b.nse_archivo
and ( getdate() between b.dfm_inicio_campana and dateadd(day, 1,
b.dfm_fin_campana)
or b.dfm_fin_campana is null
or b.dfm_fin_campana = '1900/01/01'
)

Preguntas similare

Leer las respuestas

#1 Maxi
20/01/2005 - 16:39 | Informe spam
Hola, es que no podes poner = null eso no es valido, para saber si es nulo
debes poner IS NULL


Salu2
Maxi


"Pao" escribió en el mensaje
news:
Cual es la diferencia entre un is null e = NUll

Gracias por la ayuda

select a.cci_empresa, a.nci_campana, a.nse_archivo, nse_transaccion,
ctp_identificacion,
cci_identificacion, nci_cliente, cno_cliente, ctp_cuenta, cci_cuenta,
nva_monto,
ctx_comunicar, ctx_motivo, ctx_telefono1, ctx_telefono2,
ctx_telefono3,
ctx_telefono4, cdi_email, cdi_cliente, a.ctx_referencia,
ctx_referencia1,
ctx_referencia2, ctx_referencia3, ctx_agente, ces_transaccion,
nqn_intentos,dfm_inicio_campana, dfm_fin_campana,
ctx_Titulo_referencia, ctx_Titulo_referencia1, ctx_Titulo_referencia2,
ctx_Titulo_referencia3
from CALLCENTLINKSRV.db_callcenter.dbo.cc_archivo_transaccion a,
CALLCENTLINKSRV.db_callcenter.dbo.cc_archivo_campana b
where a.nci_campana = @cci_cod_campania
And ces_transaccion = 'P'
and a.cci_empresa = b.cci_empresa
and a.nci_campana = b.nci_campana
and a.nse_archivo = b.nse_archivo
and ( getdate() between b.dfm_inicio_campana and dateadd(day, 1,
b.dfm_fin_campana)
or b.dfm_fin_campana is null
or b.dfm_fin_campana = '1900/01/01'
)

Respuesta Responder a este mensaje
#2 Ivan Pascual
20/01/2005 - 18:41 | Informe spam
Yo creo que:
i = Null únicamente sirve para asignar el valor .
ISNULL solo para comparar/Preguntar el valor.

Ivan Pascual
Respuesta Responder a este mensaje
#3 Jorge Martinez
20/01/2005 - 22:30 | Informe spam
En este articulo lo tienes explicado.
http://www.sqlservercentral.com/col...edifferenc
ebetweenisnull.asp
Saludos

"Pao" escribió en el mensaje
news:
Cual es la diferencia entre un is null e = NUll

Gracias por la ayuda

select a.cci_empresa, a.nci_campana, a.nse_archivo, nse_transaccion,
ctp_identificacion,
cci_identificacion, nci_cliente, cno_cliente, ctp_cuenta, cci_cuenta,
nva_monto,
ctx_comunicar, ctx_motivo, ctx_telefono1, ctx_telefono2,
ctx_telefono3,
ctx_telefono4, cdi_email, cdi_cliente, a.ctx_referencia,
ctx_referencia1,
ctx_referencia2, ctx_referencia3, ctx_agente, ces_transaccion,
nqn_intentos,dfm_inicio_campana, dfm_fin_campana,
ctx_Titulo_referencia, ctx_Titulo_referencia1, ctx_Titulo_referencia2,
ctx_Titulo_referencia3
from CALLCENTLINKSRV.db_callcenter.dbo.cc_archivo_transaccion a,
CALLCENTLINKSRV.db_callcenter.dbo.cc_archivo_campana b
where a.nci_campana = @cci_cod_campania
And ces_transaccion = 'P'
and a.cci_empresa = b.cci_empresa
and a.nci_campana = b.nci_campana
and a.nse_archivo = b.nse_archivo
and ( getdate() between b.dfm_inicio_campana and dateadd(day, 1,
b.dfm_fin_campana)
or b.dfm_fin_campana is null
or b.dfm_fin_campana = '1900/01/01'
)

email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida