需要多列排名怎么加语句

select name,code,color_id,sum(COUNT) as count,sum(JIN) as JIN from
(SELECT a.*,c.name,B.PRICE,a.count*b.price as jin FROM BIBEI."ORDER_T"  a join BIBEI."GOODS_T"  b on a.code=b.code  join BIBEI."CUSTOMER_T" c on c. account=a.account  where a.freeze =0
${if(len(account)==0,"","and a.account  ='"+account+"'")}
${if(len(region)==0,"","and c.region  ='"+region+"'")})
group by name,code,color_id




FineReportloveqw20087 发布于 2016-8-20 16:29
回答问题
悬赏:2 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共5回答
最佳回答
0
macro_hard发布于2016-8-20 16:33(编辑于 2023-9-6 09:34)
555
最佳回答
0
loveqw20087发布于2016-8-21 09:22(编辑于 2023-9-6 09:34)
555
最佳回答
0
macro_hard发布于2016-8-21 10:04(编辑于 2023-9-6 09:34)
555
最佳回答
0
540922194发布于2016-8-21 15:33(编辑于 2023-9-6 09:34)
555
最佳回答
0
Nober发布于2016-8-22 11:01(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 640浏览人数
  • 最后回答于:2016-8-22 11:01
    活动推荐 更多
    热门课程 更多
    返回顶部