SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Understanding tgis ISNULL sentence
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alejo46
Posting Yak Master

Colombia
149 Posts

Posted - 01/16/2012 :  10:16:18  Show Profile  Reply with Quote
Good afetrnon,

i stumbled with this senetence but i cant get it at all, its just comparing 2 NULL VALUES? (but how can a null value can be greather (>) than another NULL value?)

AND (ISNULL (TEMP.FEC_REAL,''19000101'') > ISNULL (ACA_INCIDENCIA.FEC_REAL,''19000101'')

OR ISNULL (TEMP.FEC_HISTORICO,''19000101'') > ISNULL(ACA_INCIDENCIA.FEC_HISTORICO,''19000101'')

Thanks for your help

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 01/16/2012 :  10:24:59  Show Profile  Reply with Quote

...
AND (TEMP.FEC_REAL > ACA_INCIDENCIA.FEC_REAL OR (TEMP.FEC_REAL IS NULL AND ACA_INCIDENCIA.FEC_REAL IS NULL))
OR (TEMP.FEC_HISTORICO > ACA_INCIDENCIA.FEC_HISTORICO OR (TEMP.FEC_HISTORICO IS NULL AND ACA_INCIDENCIA.FEC_HISTORICO IS NULL))
..


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000