99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2022-06-29 閱讀量: 583
計算客戶單量分布情況?

2c0a90bbac6f9bcb6d029c8247a3868.jpg

select 單量區(qū)間 , count(distinct 客戶id) as 客戶數(shù) 
from (
  select 客戶id,單量,case when 單量 <= 5 then ‘0-5’ when 單量 >= 6 and 單量 <= 10 then ‘6-10’when 單量 >= 11 and 單量 <= 20          then ‘11-20’else ‘20以上’ end as 單量區(qū)間  
     from (
     select 客戶id,count(distinct 運單號) as 單量 
     from 快遞攬收表 
     where 創(chuàng)建日期 >= ‘2020-05-01’ and 創(chuàng)建日期 <= ‘2020-05-31’
     group by 客戶id) 
   as t1) 
as t2 
group by 單量區(qū)間;


12.4471
0
關(guān)注作者
收藏
評論(0)

發(fā)表評論

暫無數(shù)據(jù)
推薦帖子