多表连接的SQL语句问题!!!!!!!!!!!!!!!!!!!!????????????????
多表连接的SQL语句问题!!!!!!!!!!!!!!!!!!!!????????????????
我想将employee和gslegal 表合并到gsmaster的记录一齐显示,合并的依据是clientid 字段
语句如下:
select a.* from (select
gsmaster.clientname,gsmaster.contactaddre,employee.employename,employee.employesex,gslegal.legalname
from employee left outer join gsmaster on gsmaster.clientid =employee.clientid ,
gslegal left outer join gsmaster on gsmaster.clientid =gslegal.clientid
) as a
但执行时出错,数据库是sql server 2000,
请各位指教,谢谢!!