Re: How to sort NULLs?
From: Eric Sabine (mopar41_at_hyotyt_mail_nounderscores.com)
Date: 07/14/04
- Next message: Tom Moreau: "Re: Why Am I Getting This Error"
- Previous message: Greg Linwood: "Re: uniqueidentifier column"
- In reply to: Shabnam Naghshineh: "Re: How to sort NULLs?"
- Next in thread: Anith Sen: "Re: How to sort NULLs?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 10:07:56 -0400
IsNull is proprietary to SQL Server, COALESCE is part of the ANSI standard.
FWIW, I have never used IsNull in production code (or test code for that
matter). I am not aware of any performance difference. Incidentally,
COALESCE does more than IsNull anyway.
hth
Eric
Shabnam Naghshineh wrote:
> It worked. I posted a note before but I think it got lost.
> What is the difference between using ISNULL and COALESCE.
> I can write a (sql statement or query!!!! :) )like:
>
> Select location, product, value
> from mytabe
> order by insull(location,repreat('z',800)),
> insull(product,repreat('z',800))
>
> or use coalesce instead. Is there a performance difference?
>
> Thaks,
>
> Shab
>
>
> ** The contents in this message are provided as is and is not
> guaranteed to be correct **
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Next message: Tom Moreau: "Re: Why Am I Getting This Error"
- Previous message: Greg Linwood: "Re: uniqueidentifier column"
- In reply to: Shabnam Naghshineh: "Re: How to sort NULLs?"
- Next in thread: Anith Sen: "Re: How to sort NULLs?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|