Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accces Null Zero equiv in SQL Server 1

Status
Not open for further replies.

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])
 
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
 
ISNULL([Merchant].[M_NAME],[Program].[ProgramName]) also

Borislav Borissov
 
That is a cool function. I have never heard of that until now.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top