Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-12-18 : 08:25:14
|
| selvan writes "what is the use of "COALESCE" this word in sql, and how can iuse it" |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2006-12-18 : 08:28:16
|
From BOL: quote: COALESCEReturns the first nonnull expression among its arguments.SyntaxCOALESCE ( expression [ ,...n ] ) Return TypesReturns the same value as expression.RemarksIf all arguments are NULL, COALESCE returns NULL.COALESCE(expression1,...n) is equivalent to this CASE function:CASE WHEN (expression1 IS NOT NULL) THEN expression1 ... WHEN (expressionN IS NOT NULL) THEN expressionN ELSE NULL
Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
|
|
|