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

Exclussion 1

Status
Not open for further replies.

shamsm

ISP
Jul 16, 2002
15
0
0
GB
Hi

I would like to exclude a value from list of variable values from an SQL expression. Let's say I have a list of categories and I want all of them to be shown except one
how can i do that? The values are numerical.

Many Thanks

 
The clause

WHERE category_field_name != <category number>
or
WHERE category_field_name NOT IN (<category number>)

should do it. ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top