SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Coalesce
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chancellor2000
Starting Member

USA
1 Posts

Posted - 05/30/2012 :  15:37:02  Show Profile  Reply with Quote
How does one use coalesce so that it doesn't return the same result for each line in a query resultset?
Does coalesce not work in a multiline resultset?

tkizer
Almighty SQL Goddess

USA
35007 Posts

Posted - 05/30/2012 :  15:50:20  Show Profile  Visit tkizer's Homepage  Reply with Quote
Please show us an example. COALESCE just returns the first non-null value for the set of values passed to it.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000