当前位置: 首页 > news >正文

郴州网签查询3分钟搞定网站seo优化外链建设

郴州网签查询,3分钟搞定网站seo优化外链建设,网站维护需要关闭网站么,彩票网站的客服有做吗文章目录 07:服务域:油站主题分析08:服务域:油站主题实现 07:服务域:油站主题分析 目标:掌握油站主题的需求分析 路径 step1:需求step2:分析 实施 需求:统计…

文章目录

    • 07:服务域:油站主题分析
    • 08:服务域:油站主题实现

07:服务域:油站主题分析

  • 目标掌握油站主题的需求分析

  • 路径

    • step1:需求
    • step2:分析
  • 实施

    • 需求:统计不同维度下的油站主题指标的结果

      image-20211004095550115

    • 分析

      • 指标:油站数量、新增油站数量

      • 维度

        • 日期维度:天、周、月
        • 油站维度:类型、省份、城市、地区
        • 客户维度:类型、省份
      • 数据表

        • 事实表

          • fact_oil_station:油站事实表

            selectos_num,--油站个数current_new_os_num --新增油站个数
            from fact_oil_station;
            
          • 维度表

            • dim_oilstation:油站维度表

              selectid,--油站idcompany_name,--公司名称province_name,--省份名称city_name,--城市名称county_name,--区域名称customer_classify_name,--客户名称customer_province_name--客户省份
              from dim_oilstation;
              
            • dim_date:时间维度表

              selectdate_id,--天week_in_year_id,--周year_month_id --月
              from dim_date;
              
  • 实现分析

    selecta.os_id,--油站idsum(a.os_num),--油站数量sum(a.current_new_os_num),--新增油站数量b.date_id,--天b.week_in_year_id,--周b.year_month_id, --月c.company_name,--公司名称c.province_name,--省份名称c.city_name,--城市名称c.county_name,--区域名称c.customer_classify_name,--客户名称c.customer_province_name--客户省份from fact_oil_station ajoin one_make_dws.dim_date b on a.dt = b.date_idjoin one_make_dws.dim_oilstation c on a.os_id = c.idgroup byb.date_id,--天b.week_in_year_id,--周b.year_month_id, --月c.company_name,--公司名称c.province_name,--省份名称c.city_name,--城市名称c.county_name,--区域名称c.customer_classify_name,--客户名称c.customer_province_name;--客户省份;
    
  • 小结

    • 掌握油站主题的需求分析

08:服务域:油站主题实现

  • 目标实现油站主题表的维度指标构建

  • 实施

    • 建表

      -- 创建油站主题表
      drop table if exists one_make_st.subj_oilstation;
      create table if not exists one_make_st.subj_oilstation(sum_osnum bigint comment '油站数量',sumnew_osnum int comment '新增油站数量',dws_day string comment '日期维度-按天',dws_week string comment '日期维度-按周',dws_month string comment '日期维度-按月',oil_type string comment '油站维度-油站类型',oil_province string comment '油站维度-油站所属省',oil_city string comment '油站维度-油站所属市',oil_county string comment '油站维度-油站所属区',customer_classify string comment '客户维度-客户类型',customer_province string comment '客户维度-客户所属省'
      ) comment '油站主题表'
      partitioned by (month String, week String, day String)
      stored as orc
      location '/data/dw/st/one_make/subj_oilstation';
      
    • 构建

      insert overwrite table one_make_st.subj_oilstation partition(month = '202101', week='2021W1', day='20210101')
      selectsum(oil.os_num) sum_osnum,                          --油站数量sum(oil.current_new_os_num) sumnew_osnum,           --新增油站数量dd.date_id dws_day,                                 --日期天dd.week_in_year_id dws_week,                        --日期周dd.year_month_id dws_month,                         --日期月dimoil.company_name oil_type,                       --油站类型dimoil.province_name oil_province,                  --油站省份dimoil.city_name oil_city,                          --油站城市dimoil.county_name oil_county,                      --油站区域dimoil.customer_classify_name customer_classify,    --客户类型dimoil.customer_province_name customer_province     --客户省份
      --油站事务事实表
      from one_make_dwb.fact_oil_station oil
      --关联日期维度表
      left join one_make_dws.dim_date dd on oil.dt = dd.date_id
      --关联油站维度表
      left join one_make_dws.dim_oilstation dimoil on oil.os_id = dimoil.id
      where dd.year_month_id = '202101'and dd.week_in_year_id = '2021W1' and  dd.date_id = '20210101'
      --按照维度字段分组
      group by dd.date_id, dd.week_in_year_id, dd.year_month_id,  dimoil.company_name, dimoil.province_name, dimoil.city_name, dimoil.county_name, dimoil.customer_classify_name, dimoil.customer_province_name;
      
  • 小结

    • 实现油站主题表的维度指标构建
http://www.dinnco.com/news/52127.html

相关文章:

  • 企业做网站公司排名惠州抖音seo
  • 网站建设推广型手机百度网盘网页版登录入口
  • asp技术做网站引流用什么话术更吸引人
  • 慈善会的网站是形成还是建设企业网站建站模板
  • 烟台酒店网站建设注册一个网站
  • 制作装饰公司网站青岛做网站推广
  • 网站开发报价单.doc成都网站设计
  • 营业执照年审怎么年审关键词优化seo优化
  • jsp做网站前端实例网络营销策划方案怎么做
  • 长沙网站开发微联讯点不错培训教育
  • 成都做网站开发的公司高质量外链
  • 开服网站源码关键词优化百家号
  • 正规网站模板设计搜索网
  • 中小企业网站建设费用软文网站模板
  • 叫别人建个网站多少钱友情链接还有用吗
  • 多语种网站开发沈阳seo关键词排名
  • 网站建设哪家好友情链接多久有效果
  • 做科技汽车的视频网站有哪些内容企业培训课程体系
  • 黄金网站app在线观看下载10广告公司收费价格表
  • wordpress 漂亮主题湛江seo
  • 中国最新消息新冠疫苗最新消息简述什么是seo
  • 做网站首页需要什么资料武汉百度快照优化排名
  • wordpress版权信息济南seo优化公司助力排名
  • wordpress创建小工具关键词优化排名软件案例
  • 基于MVC网站建设课程设计报告佛山外贸seo
  • ssh网站开发seo超级外链发布
  • 网站开发收费标准文档最吸引人的营销广告词
  • 北京网站建设小程序开发广州市疫情最新情况
  • 网站上传连接失败的原因上海市人大常委会
  • 如何直到网站是用什么模板做的国外网站加速