方法1:select a.stuName as stuName,a.className as className,b.proName as project,c.scoreinto #fkfrom student a,project b,marks cwhere a.stuId=c.stuId and b.proId=c.proIdselect stuName,className,project,max(score) as scorefrom #fkwhere stuName in (select stuName from #fk where score in(select max(score) from #fk group by cla...
|