MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

ESSENTIALS: Home | Tips | Search | Categories | Top 10 | Products | Authors | Blogs | Forums | Webcasts | Advertise | About
WHAT IS BETTER COALESCE VS ISNULL -

in Search

WHAT IS BETTER COALESCE VS ISNULL

Last post 06-05-2008 5:25 PM by aprato. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-05-2008 1:34 PM

    WHAT IS BETTER COALESCE VS ISNULL

    I want to know wich statement is better

  • 06-05-2008 5:25 PM In reply to

    • aprato
    • Top 10 Contributor
    • Joined on 12-01-2007
    • Greater Boston
    • Posts 190

    Re: WHAT IS BETTER COALESCE VS ISNULL

    COALESCE = ANSI syntax

    In addition, COALESCE can take multiple inputs whereas ISNULL only takes 2 inputs. 

    For more details 

    http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/performance-isnull-vs-coalesce.aspx


Page 1 of 1 (2 items)