Harish writes "I'm using SQL Server 7.0I am making an advance search option to search out the employees of the organization on the basis of different skillsets and qualifications. For that I have a following tableTable : Emp_Qualification---------------------------------------------------------Emp_Code SkillSets Qualification---------------------------------------------------------E001 VB,ASP,JSP DCOM,COM MBA,MCAE002 JavaScript,Vbscript,ASP MBA,BEE003 Java,Jsp,EJB MCA,B-TEChE004 Vb,VC++,Java BA,MCA
Now the problem is if I want to select all those people who know java. I write the following statement Select Emp_Code,SkillSets from Emp_Qualification where SkillSets Like '%Java%'Above query return me the record containign 'JavaScript'Similiary I would like to return all those records those qualification is 'BA' and knowing 'JAVA' then I write the following query Select Emp_Code,SkillSets,Qualification from Emp_Qualification where SkillSets Like '%Java%' and qualification like '%BA%'This query will also return record of having qualificatin 'MBA' and skillset containing 'JavaScript'Is there any mehtod to match the exact value with 'Like' Clause in T-SQL StatementCan anybody enhance the above queries ?Thanks"