Feb 10, 2006 #1 dndaughtery Programmer Joined Jan 25, 2006 Messages 67 Location US I have the following in a select statement that I need to convert to run on SQL Server. Any ideas? NZ([Merchant].[M_NAME],[Program].[ProgramName])
I have the following in a select statement that I need to convert to run on SQL Server. Any ideas? NZ([Merchant].[M_NAME],[Program].[ProgramName])
Feb 10, 2006 1 #2 SQLDenis Programmer Joined Oct 1, 2005 Messages 5,575 Location US COALESCE([Merchant].[M_NAME],[Program].[ProgramName]) Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/ Upvote 0 Downvote
COALESCE([Merchant].[M_NAME],[Program].[ProgramName]) Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/
Feb 10, 2006 #3 gmmastros Programmer Joined Feb 15, 2005 Messages 14,912 Location US Lookup IsNull and Coalesce in Books On Line. Select Coalesce([Merchant].[M_NAME],[Program].[ProgramName]) From Table Will return [Merchant].[M_NAME] if it is not null. If it is, then Program.ProgramName will be returned. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom Upvote 0 Downvote
Lookup IsNull and Coalesce in Books On Line. Select Coalesce([Merchant].[M_NAME],[Program].[ProgramName]) From Table Will return [Merchant].[M_NAME] if it is not null. If it is, then Program.ProgramName will be returned. -George Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
Feb 10, 2006 #4 bborissov Programmer Joined May 3, 2005 Messages 5,167 Location BG ISNULL([Merchant].[M_NAME],[Program].[ProgramName]) also Borislav Borissov Upvote 0 Downvote
Jul 13, 2006 #5 LonnieJohnson Programmer Joined Apr 16, 2001 Messages 2,628 Location US That is a cool function. I have never heard of that until now. ProDev, MS Access Applications Visit me at ==> http://www.prodev.us May God bless you beyond your imagination!!! Upvote 0 Downvote
That is a cool function. I have never heard of that until now. ProDev, MS Access Applications Visit me at ==> http://www.prodev.us May God bless you beyond your imagination!!!