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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If/then expression in stored procedure

Status
Not open for further replies.

cbirknh

Programmer
Jun 28, 2002
14
US
Hi,
I am new to SQL server from MSAccess and am trying to rewrite some of my old queries. In MSAccess, I could use the Iif function for derived values like "Iif(A=B,1,0)", but I can't figure out the SQL server equivalent. Is there such a function? If so, what is the correct syntax?

Thank you,
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top