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

where statement 1

Status
Not open for further replies.

simanek

Programmer
Jan 19, 2001
137
US
I'm writing a statement where I want to select multiple conditions in the 'where' part of the statement. For example: select &quot;id&quot;, &quot;state&quot;, &quot;problem&quot;, &quot;solution&quot;, &quot;date&quot;, from &quot;reports&quot; where id<50 and id>20 state=critical date>1/1/01 and date<6/1/01

Everything after the 'where' i'm not sure how to do. Any help would be appreciated. Is it even possible? Thanks.

Mike
 
where x = something and y = otherthing or z = 'somestring' or a in(a set of values)... John Fill
1c.bmp


ivfmd@mail.md
 
so just separate each condition by a logical operator?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top