Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Dec 20, 1999

IN SQL Statement

Question:
I have department codes like this: T, B, P, O, Q, etc. How can I find T only, B only, or others only (excluding T and B)?

Answer:
You can achieve this by using the IN statement. You could say:

 
WHERE Department NOT IN ( 'T', 'B' )
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date