SQL code: SELECT emp.Guid, emp.Name from Employee emp where exists ( select sk.Name from Skill sk where sk.EmployeeGuid = emp.Guid and sk.Name = N'CVS' ) and exists ( select sk.Name from Skill sk where sk.EmployeeGuid = emp.Guid and sk.Name = N'JSF' )
SQL code:
SELECT a.* from Employee as a, Skill as b where a.Guid=b.EmployeeGuid and b.name='cvs' and b.name='jsf'
SQL code:
SELECT emp.Guid, emp.Name from Employee emp left join Skill sk on sk.EmployeeGuid = emp.Guid where sk.Name in( N'CVS',N'JSF')