Record Matching

C

carl

I have a database that looks like this:

Type Code ItemID
A BOX1 999
B BOX2 998
C BOX3 997
D BOX4 996
E BOX5 995


I would like a query which will return all records where Type is equal to
A,C,D.


Type Code ItemID
A BOX1 999
C BOX3 997
D BOX4 996


Thank you in advance.
 
D

Dorian

SELECT * FROM MyTable WHERE [Type] IN ('A','C','D');
If you have the list of wanted types saved in a table you would do it a
different way.
SELECT * FROM MyTable WHERE [Type] IN (SELECT [Type] FROM MyListOfTypes);
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top