趁著上班摸魚,整理的一套數(shù)據(jù)分析實(shí)戰(zhàn)項(xiàng)目,附pdf下載!
項(xiàng)目背景



項(xiàng)目思路

項(xiàng)目解決方案部分展示
1、不同表之間的關(guān)聯(lián)圖
該項(xiàng)目涉及太多的表,我們第一步就是要弄清楚不同表之間的聯(lián)系。

2、相關(guān)數(shù)據(jù)集介紹
3、項(xiàng)目完整的可執(zhí)行SQL
你是否寫過超過100行的SQL代碼呢?或者說,寫出過這么多有關(guān)聯(lián)的SQL呢?趕緊學(xué)習(xí)起來吧!
比如用車消費(fèi)能力,這里腳本太長只展示一部分:
use ccdb;
-- 創(chuàng)建臨時(shí)表
DROP TEMPORARY TABLE IF EXISTS d_type_user_tmp;
CREATE TEMPORARY TABLE user_layer_tmp
select * from
(
select 'A類用戶' as user_type, '大于等于3單用戶' as details, one_user_cnt as user_cnt from c_type_user_tmp
union all
select 'B類用戶' as user_type, '等于2單用戶' as details, two_user_cnt as user_cnt from b_type_user_tmp
union all
select 'C類用戶' as user_type , '等于1單用戶' as details, thr_user_cnt as user_cnt from a_type_user_tmp
union all
select 'D類用戶' as user_type, '歷史有完單,最近90天無完單用戶' as details, 90_user_cnt as user_cnt from d_type_user_tmp
)t ;
4、分析結(jié)果的可視化

文檔領(lǐng)取
評論
圖片
表情
