SQL WHERE

Sam Runyon
Sam Runyon used Ask the Experts™
on
Need help with "WHERE" statements I am very new with SQL statements I need a where statements that will pull multiple values

Here is what I have:
WHERE  A.facility_type = 'CHEM'

here is what i need
WHERE  A.facility_type = 'CHEM' , "CHTK"

Any help?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Distinguished Expert 2018
Commented:
What database product?

Most allow IN clauses:

WHERE  A.facility_type in ('CHEM' , 'CHTK')

You can also always do it the brute force way:

WHERE  (A.facility_type = 'CHEM' or A.facility_type = 'CHTK')

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial