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')
sql2005 select *from v_ddxx where d_sfsc='0' and (g_ssbm='1001' or g_ssbm='1002') and (xxf>0 and xxfwzf <>0 ),Ö´ÐÐËÙ¶ÈÂýµÄÒªËÀ£¬µ«ÊÇÈç¹û°Ñ(xxf>0 and ......