Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more: , +
How to use multiple like operater in stored procedure..?

select Name,Experience,ExpMonth,ug,PreferredRole,Skill,CountryOfResidance,Name,Gender,JobCategories,PresentDesignation,Skill,PreferredRole,PrefferdJobLocation from Candidate_Registration where PresentJobLocation like 'C%'


waned to use another like operter and OR operator in the same query..
Posted

 
Share this answer
 
 
Share this answer
 
Comments
[no name] 13-Feb-14 0:37am    
I wanted to use or operator in the same program
SQL
select Name,Experience,ExpMonth,ug,PreferredRole,Skill,CountryOfResidance,Name,Gender,JobCategories,PresentDesignation,Skill,PreferredRole,PrefferdJobLocation from Candidate_Registration where PresentJobLocation like 'C%' OR SomeOtherColumn like 'someValue%'
 
Share this answer
 
v2
Comments
[no name] 13-Feb-14 1:34am    
Thank u..one more problem i have same column name and different parameter name..each parameter will initialize with same column name using OR and like operator it is possible or not?
Yes, possible like...

select Name,Experience,ExpMonth,ug,PreferredRole,Skill,CountryOfResidance,Name,Gender,JobCategories,PresentDesignation,Skill,PreferredRole,PrefferdJobLocation from Candidate_Registration where PresentJobLocation like 'C%' OR PresentJobLocation like 'someValue%'
[no name] 13-Feb-14 2:02am    
am using 4 checkbox like delhi,chennai,kochi,banglore when i click thiz checkbox the particular stord procedure vl work but i was clicked two checkbox like delhi and chennai but no value vl formed..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900