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

Anding in query

Status
Not open for further replies.

yogi2002

Programmer
Jan 14, 2002
2
US
Hi I am deveoping a web site for subimmiting resumes. I am storing user skillsets in one field in access database. in page for view resumes by skills i want to give facility for ANDing in skillsets. At the moment the query which i am using lets me to search for single skillset. I am using syntax in sql query as

Select * from resumes Where ResSkills like '%sql%'


now if i want to search multiple skills in same fields how should be syntax of my sql query


Yogesh
 
You should consider splitting the skill sets off into it own table linked back to the submitter. This will make searching MUCH easier. Not to mention helping you achieve at least the First Normal Form.
 
Sorry, not much u can do that I can see other than....

Select * from resumes Where ResSkills like '%sql%' OR ResSkills like '%sql%' OR ...

Also.. U may want to perform an Upper Case function on ResSkills and use upper case in the search criteria (ie. sql) to insure proper coverage. Unless you are 100% sure on the way information is entered.

htwh Steve Medvid
"IT Consultant & Web Master"
 
I am pretty sure the "%" should be an "*"...

SELECT Table1.*
FROM Table1
WHERE (((Table1.Field2) Like "*sql*")) OR (((Table1.Field2) Like "*oracle*")); Steve Medvid
"IT Consultant & Web Master"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top