请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
yzm521611(uid:738251)
职业资格认证:FCP-报表交付工程师
  • with t as (select * from STSCORE aleft join (SELECT CLASSNO,COURSE,round(AVG(GRADE),2) as AVG           FROM STSCORE           group by CLASSNO,COURSE) b on a.CLASSNO = b.CLASSNO and a.COURSE = b.COURSE) select t.CLASSNO,t.COURSE,t.AVG from twhere t.CLASSNO = 'Class1'order by COURSE ascselect Classno,course,ROUND(AVG(GRADE),2) from stscore where classno='Class2' group by course
  • select t.m,t.ym,      t.销量,      t1.销量 同期,      (case when t1.销量 is null then ''           else (t.销量-t1.销量)/t1.销量 end) 同比,      t2.销量 上期,      (case when t2.销量 is null then ''           else (t.销量-t2.销量)/t2.销量 end) 环比from (select strftime('%m',b.订购日期)+0 m,      strftime('%Y-%m',b.订购日期) ym,      sum(a.数量) 销量from 订单明细 a    left join 订单 b on a.订单ID=b.订单IDwhere strftime('%Y',b.订购日期) = '${y}'group by strftime('%Y-%m',b.订购日期)) tleft join(select strftime('%m',b.订购日期)+0 m,      strftime('%Y-%m',b.订购日期) ym,      sum(a.数量) 销量from 订单明细 a    left join 订单 b on a.订单ID=b.订单IDwhere strftime('%Y',b.订购日期) = '${y-1}'group by strftime('%Y-%m',b.订购日期)) t1 on t.m=t1.mleft join(select (case when strftime('%m',b.订购日期)+0 <=11        then strftime('%m',b.订购日期)+1 end) m,      strftime('%Y-%m',b.订购日期) ym,      sum(a.数量) 销量from 订单明细 a    left join 订单 b on a.订单ID=b.订单IDwhere strftime('%Y',b.订购日期) = '${y}'group by strftime('%Y-%m',b.订购日期)) t2 on t.m=t2.m
  • select t.m,t.ym,      t.销量,      t1.销量 同期,      (case when t1.销量 is null then ''           else (t.销量-t1.销量)/t1.销量 end) 同比,      t2.销量 上期,      (case when t2.销量 is null then ''           else (t.销量-t2.销量)/t2.销量 end) 环比from (select strftime('%m',b.订购日期)+0 m,      strftime('%Y-%m',b.订购日期) ym,      sum(a.数量) 销量from 订单明细 a    left join 订单 b on a.订单ID=b.订单IDwhere strftime('%Y',b.订购日期) = '${y}'group by strftime('%Y-%m',b.订购日期)) tleft join(select strftime('%m',b.订购日期)+0 m,      strftime('%Y-%m',b.订购日期) ym,      sum(a.数量) 销量from 订单明细 a    left join 订单 b on a.订单ID=b.订单IDwhere strftime('%Y',b.订购日期) = '${y-1}'group by strftime('%Y-%m',b.订购日期)) t1 on t.m=t1.mleft join(select (case when strftime('%m',b.订购日期)+0 <=11        then strftime('%m',b.订购日期)+1 end) m,      strftime('%Y-%m',b.订购日期) ym,      sum(a.数量) 销量from 订单明细 a    left join 订单 b on a.订单ID=b.订单IDwhere strftime('%Y',b.订购日期) = '${y}'group by strftime('%Y-%m',b.订购日期)) t2 on t.m=t2.m

55

8

55

10

个人成就
内容被浏览20,902
加入社区3年121天
返回顶部