数据统计

 

select t1.report_name, t.report_url, count(user_id) cpount
  from REPORT_USE_QUANTITY t, qywx_report_info t1
 where OPER_TIME between
       to_date('2020-01-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss') and
       to_date('2020-02-29 23:59:59', 'yyyy-mm-dd hh24:mi:ss')
   and BUSSE_TYPE = 'gx'
   and report_id = report_info_id
   and t.REPORT_URL not like '%/yb%'
   and t.REPORT_URL not like '%/report_ajax2/%'
   and t.REPORT_URL not like '%/zzb/%'
   and t.REPORT_URL not like '%/xqts/%'
   and t.REPORT_URL not like '%/ybyj_yj%'
   and t.REPORT_URL not like '%/xq/%'
   and t.REPORT_URL not like '/reportIndex/%'
   and t.REPORT_URL not like '%/servicePlatform/%'
   and t.REPORT_URL not like '%/list'
   and t.REPORT_URL not like '%/servicePlatformHisNotice/%'
   and t.REPORT_URL not like '%/projectInstruction/%'
   and t.REPORT_URL not like '%/ybyj/%'
   and t.REPORT_URL not like '%/khyj/%'
   and t.REPORT_URL not in ('/qywx/jssdk/sign',
                            '/cxbb/error',
                            '/agent/event/callback',
                            '/airworkplace/index',
                            '/beichi/validateToken',
                            '/click/count/analFunctionRanking',
                            '/click/count/analyse',
                            '/click/count/init',
                            '/gxyx/html',
                            '/gxyx/ywglpt/html',
                            '/report/index/gxmain/index',
                            '/reportIndex/report_ajax2',
                            '/report/common/init',
                            '/first/common/initWQ',
                            '/latter/report/list',
                            '/qyhLbtShare/newShowPage',
                            '/getConfig/getData',
                            '/qyhPush/yxpwIndex',
                            '/report/index/gxmain/index01',
                            '/goodStart/common/flyingStart',
                            '/cqbb/list',
                            '/first/common/salaryDetails',
                            '/cqbb/dataList',
                            '/cxbb/dataList',
                            '/cpt_wkt_use/dataList',
                            '/reportIndex/selectMyForm',
                            '/qyhyxx/login',
                            '/goodStart/common/flyingStart',
                            '/get/proxyer/count',
                            '/report/anal/init',
                            '/cpt_wkt_use/getData',
                            '/cpt_wkt_use/dataInit',
                            '/first/common/pk_203002',
                            '/first/common/xz_101011',
                            '/get/proxyer/init',
                            '/report/anal/init',
                            '/cpt_wkt_use/dataInit',
                            '/cpt_wkt_use/getData',
                            '/first/common/rgrl_101012',
                            '/latter/report/init',
                            '/report/any/gx/32450',
                            '/report/any/gx/32460')
      
   and t.REPORT_URL not like '%/data'
   and t.REPORT_URL not like '%/beichi/initIndex/%'
   and t.REPORT_URL not like '%/inside/%'
   and t.REPORT_URL not like '%/cob/%'
   and t.REPORT_URL not like '%/cob/%'
   and t.REPORT_URL not like '%/report/index/gx/%'
   and t.REPORT_URL not like '/ylt/%'
   and t.REPORT_URL not like '%/qyhlbt/%'
   and user_id not like 'rtdl%'
   and t.REPORT_URL not like '/reportKpiIndex%'
   and t.REPORT_URL not like '/report/index/ybmain%'
   and t.REPORT_URL not like '%/error'
   and report_id is not null

 group by report_name, t.report_url
 order by count(*) desc

-----

SELECT table_alias.*,(select to_char(wm_concat(name))
                          from qy_DEPARTMENT a
                         start with id = table_alias.DEPARTMENT
                        connect by prior PARENTID = id) 机构

  FROM (SELECT tt.*, ROWNUM AS rowno        
          FROM (select NAME,
                       t.user_id,
                       nvl(POSITION,'aaaaaaa') aaaaa,
                       nvl(EMAIL,'aaaaaaa') EMAIL,
                        DEPARTMENT
                       
                  from tpweixin.qy_user t, tpweixin.test200304 t1
                 where t.user_id = t1.user_id order by user_id ) tt
         WHERE ROWNUM <= 10000*1   ---共7页
         ) table_alias
 WHERE table_alias.rowno > 10000*(1-1)


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值