标签:
select s.Id,s.Tel,s.Name,sc.Name schoolName,m.Name majorName,sum(p.P_Price) counter
from payTrace as p, studentI as s,Major m,School sc
where s.Id=p.P_Xh and s.Major=m.Id and m.Pid=sc.Id
group by s.Id,s.Tel,s.Name,sc.Name,m.Name
标签:
原文地址:http://www.cnblogs.com/0to9/p/5066681.html