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

Query to Check if PrevRS is falseOR PrevRS false and Where 2

Status
Not open for further replies.

din2005

Programmer
Mar 22, 2005
162
GB
Hi everyone,

How do u form a criteria to check where prevRS is false OR prevRS is true AND Location is not null.

Can this be done in a query or could someone provide me sql for this to get me going.

Thanks
 
where ((PrevRS = 'false') OR (prevRS = 'true')) AND not isnull(Location)

--------------------
Procrastinate Now!
 
Another way:
WHERE PrevRS IN ('false','true') AND NOT (Location IS NULL)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top