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 dencom 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
Jan 25, 2006
67
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top