blob: 12ed0363ad23d23884145437d34cb464d3843d55 [file] [log] [blame]
select test_kylin_fact.lstg_format_name, test_cal_dt.week_beg_dt,sum(test_kylin_fact.price) as GMV
, count(*) as TRANS_CNT
from test_kylin_fact
inner JOIN test_cal_dt
ON test_kylin_fact.cal_dt = test_cal_dt.cal_dt
where DATE '2013-02-10' <= test_cal_dt.week_beg_dt
group by test_kylin_fact.lstg_format_name, test_cal_dt.week_beg_dt