What is the use of SQL COALESCE Function??
How to implement this??
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Midhun TpRank #388 · 6.5K reputationPosted Oct 28, 2016, 8:56 PM EDT
In SQL Server, the COALESCE function returns the first non-null expression in the list. If all expressions evaluate to null, then the COALESCE function will return null.
Select COALESCE(null,null,1,2,null) statement will return result as 1
Please have a look at below articles -
Pradeep SahooRank #489 · 5.1K reputationPosted Oct 29, 2016, 3:09 AM EDT