Returns the first nonnull expression among its arguments. ... In SQL Server, to index expressions involving COALESCE with non-null parameters, the computed column can be persisted using the PERSISTED column attribute as in the following statement:
msdn.microsoft.com/en-us/library/ms190349.aspx
; MSDN Library; Servers and Enterprise Development; SQL Server; SQL Server 2000; SQL Server 2000 Books Online; Transact-SQL Reference; COALESCE...
msdn.microsoft.com/en-us/library/aa258244(SQL.80).aspx msdn.microsoft.com/en-us/library/aa258244(SQL.80).aspx
The SQL Coalesce function returns the value of the first of its input parameters that is not NULL. Although it can be used with strings, COALESCE it is not limited to being passed just strings. ... The SQL Coalesce function receives a list of parameters that are seperated by commas. The function returns the value of the...
www.sqlbook.com/SQL/SQL-Coalesce-28.aspx www.sqlbook.com/SQL/SQL-Coalesce-28.aspx
Discuss how to use the COALESCE function in SQL. Uses an example to illustrate COALESCE usage. ... The COALESCE function in SQL returns the first non-NULL expression among its arguments.
www.1keydata.com/sql/sql-coalesce.html www.1keydata.com/sql/sql-coalesce.html
Null (SQL) - Wikipedia, the free encyclopedia
Null is a special marker used in Structured Query Language (SQL) to indicate that a data value does not exist in the database. Introduced by the creator of the relational database model, E. F. Codd, ...
en.wikipedia.org/wiki/Null_(SQL)
Using Coalesce to Execute Multiple SQL Statements; Once you can pivot data using the coalesce statement, it is now possible to run multiple SQL statements by pivoting the data and using a semicolon to separate the operations.
www.mssqltips.com/tip.asp?tip=1521 www.mssqltips.com/tip.asp?tip=1521
This SQL Help article describes how to use the Coalesce statement to create useful select queries ... The Transact SQL Coalesce function is an extremely useful piece of syntax to know as it can be used in place of other longer SQL Server syntax.
www.brettb.com/SQL_Help_Coalesce_Statement.asp www.brettb.com/SQL_Help_Coalesce_Statement.asp
A relatively scarce difference is the ability to apply constraints to computed columns that use COALESCE() or ISNULL(). SQL Server views a column created by COALESCE() as nullable, whereas one using ISNULL() is not.
www.aspfaq.com/2532
Ben Nadel's blog @ Kinky Solutions ... My main man, Rick O, just told me about the SQL statement COALESCE(). He had pointed out that my use of ISNULL() is not as universally accepted on DB platforms as COALESCE(). This function, as he explained, takes a list of items and returns the first one that is not NULL.
www.bennadel.com/blog/195-SQL-COALESCE-Like-ISNULL-On-S... www.bennadel.com/blog/195-SQL-COALESCE-Like-ISNULL-On-Steroids-With-Caveats.htm
Ben Nadel's blog @ Kinky Solutions ... Tags: SQL ... As I just blogged, COALESCE() was just pointed out to me. Its a cool function, but I was curious to see how it compared in speed to ISNULL(). It seems that COALESCE() is about 2 to 3 times slower on enormous queries:
www.bennadel.com/blog/196-SQL-COALESCE-Very-Cool-But-Sl... www.bennadel.com/blog/196-SQL-COALESCE-Very-Cool-But-Slower-Than-ISNULL-.htm
Definitions