为了账号安全,请及时绑定邮箱和手机立即绑定

各位大大求助 为什么不能加别名,一加别名就报未找到from关键字

各位大大求助 为什么不能加别名,一加别名就报未找到from关键字

qq_你的爱我守护_0 2017-12-21 10:18:25
select a.s# ,a.sname,       sum(decode(c.cname,'语文',s.score,0)),       sum(decode(c.cname,'数学',s.score,0)),       sum(decode(c.cname,'英语',s.score,0)),       avg(s.score)from stu a,cou c,sc s where a.s# = s.s# and c.c# = s.c# group by a.s#,a.sname order by avg(s.score) desc
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 1418 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信