补充cxxbro的答案 select s1.id as id,s1.score as math,s2.score as english,s1.score+s2.score as sum from student as stu join score as s1 join score as s2 where stu.id=s1.id AND s1.id=s2.id AND s1.subject='math' AND s2.subject='english' union select 'avg' as id,avg(s1.score) as math,avg(s2.score) as english,avg(s1.score+s2.score) from score as s1 join score as s2
点赞 1

相关推荐

M_bao:换个排版吧哥们,看着费劲
点赞 评论 收藏
分享
起名字真难233:这名字一看就比什么上海寻梦信息技术有限公司,北京三快网络技术有限公司等高级不少
点赞 评论 收藏
分享
牛客网
牛客企业服务