本文共 1315 字,大约阅读时间需要 4 分钟。
org.nlpcn.es4sql.Test
SELECT newtype as nt from twitter2 SELECT sum(num) as num2,newtype as nt from twitter2 group by nt order by num2 SELECT sum(num_d) as num2,split(newtype,',') as nt from twitter2 group by nt order by num2SELECT sum(num_d) as num2,floor(num) as nt from twitter2 group by floor(num),newtype order by num2SELECT split('newtype','b')[1] as nt,sum(num_d) as num2 from twitter2 group by ntSELECT split(substring('newtype',0,3),'c')[0] as nt,num_d from twitter2 group by ntSELECT trim(newtype) as nt from twitter2SELECT floor(floor(substring(time,0,14)/100)/5)*5 as nt,count(distinct(mid)) as cvalue FROM twitter2 where ty='buffer' and day='20160815' and domain='baidu.com' group by nt order by cvalue
转载地址:http://plhtl.baihongyu.com/