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

'like' w/ in the list of

Status
Not open for further replies.

mdr227

Programmer
Joined
Nov 17, 2000
Messages
114
Location
US
I want to do a query where I search for different phrases in a jobs title field. For example I want to pull everyone that has 'CFO', 'CEO', 'President', 'Partner', etc. in the title field. How can I do this w/ the like operator? Thanks.
 
In SQL the wildcard is the '%'. So something like this:
select * from table1 where title like '%CEO%' or like '%CFO%' .. and so on.

Ashley L Rickards
SQL DBA
 
If you're using MS Access, it doesn't use the ANSI standard '%' operator, so you'll have to use it's wildcard character, the asterisk '*'.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top