SQL Query Question (<>)

  • Thread starter Thread starter lexiwynona
  • Start date Start date
L

lexiwynona

Hi All:
I am new to this website. I just have a simple SQL question. In my query I
want to retrieve all records except the "com" and "non" records in a status
field. When I use the <>"com" I get all the data I need, however, I also get
one lone "non" record. How do I combine the "<>("com" Or "non")" SQL query?
Thanks in advance,
Lexi
 
Hi All:
I am new to this website. I just have a simple SQL question. In my query I
want to retrieve all records except the "com" and "non" records in a status
field. When I use the <>"com" I get all the data I need, however, I also get
one lone "non" record. How do I combine the "<>("com" Or "non")" SQL query?
Thanks in advance,
Lexi

NOT IN ("com", "non")

or

<> "com" AND <> "non"


John W. Vinson[MVP]
 

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

Back
Top