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

if statements in queries?

Status
Not open for further replies.

PreacherUK

Technical User
Sep 26, 2002
156
NL
Just wondered if there was a way to do something like the following (Which is possible in MS Access):


FieldnameAlias: if([Fieldname]<0,0)

Which would produce a 0 for any value under 0.

Is the way to accomplish this to priduce a copy of the data and run an update statement against it?

Cheers
 
How can I work this into a view?

It says the query designer does not support the case function.
 
Use SQL Query Analyzer to write and test your query, then use the "create view" SQL to create the view.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top