|NO.Z.00035|——————————|BigDataEnd|——|Hadoop&Hue.V04|——|Hue.v04|案例实现.v01|

一、需求描述:针对销售数据,完成统计:
### --- [数据仓库工具-Hive]

~~~     [Hue案例之导入数据]
~~~     [Hive案例实现part01]
~~~     [Hive案例实现part02]
~~~     [Hive案例实现part03]
~~~     [Hive案例实现part04]
~~~     [Hive案例实现part05] 
### --- 需求描述:针对销售数据,完成统计:

~~~     1. 按年统计销售额
~~~     2. 销售金额在 10W 以上的订单
~~~     3. 每年销售额的差值
~~~     4. 年度订单金额前10位(年度、订单号、订单金额、排名)
~~~     5. 季度订单金额前10位(年度、季度、订单id、订单金额、排名)
~~~     6. 求所有交易日中订单金额最高的前10位
~~~     7. 每年度销售额最大的交易日
~~~     8. 年度最畅销的商品(即每年销售金额最大的商品)
二、数据说明
日期表(dimdate)    
dt date 日期
yearmonth int 年月
year smallint
month tinyint
day tinyint
week tinyint 周几
weeks tinyint 第几周
quat tinyint 季度
tendays tinyint
halfmonth tinyint 半月
订单表(sale)    
orderid string 订单号
locationid string 交易位置
dt date 交易日期
订单销售明细表(saledetail)    
orderid string 订单号
rownum int 行号
itemid string 货品
num int 数量
price double 单价
amount double 金额

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

posted on 2022-04-07 14:47  yanqi_vip  阅读(21)  评论(0)    收藏  举报

导航