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

Logical functions in SQL? 1

Status
Not open for further replies.

GSMike

Programmer
Feb 7, 2001
143
US
Does anyone know:
In Access there is a logical function you can use in queries called "Switch". Ex:
=Switch(criteria1,value1,criteria2,value2....)
Whichever criteria is deemed true,the value associated with that criteria is returned.
Is there any function in SQL that mimics this functionality? Are there logical functions available in SQL Server in general? Thank you...
 
in SQL server is the
where SomeThing in(value1, value2...) John Fill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top