Commit b2fbce74 authored by yindanlei's avatar yindanlei

add fangan_day report codes

parent 1a3b8836
...@@ -56,7 +56,7 @@ FROM ...@@ -56,7 +56,7 @@ FROM
(SELECT code,is_ai_channel,partition_day (SELECT code,is_ai_channel,partition_day
FROM DIM.DIM_AI_CHANNEL_ZP_NEW FROM DIM.DIM_AI_CHANNEL_ZP_NEW
WHERE partition_day>= '20200724' AND partition_day <=regexp_replace(date_sub(current_date(),1),'-','')) tmp WHERE partition_day>= '20200724' AND partition_day <=regexp_replace(date_sub(current_date(),1),'-','')) tmp
ON m.partition_date=tmp.partition_day AND first_channel_source_type=code ON partition_date=tmp.partition_day AND first_channel_source_type=code
where partition_date>='20200724' AND partition_date<=regexp_replace(date_sub(current_date(),1),'-','') where partition_date>='20200724' AND partition_date<=regexp_replace(date_sub(current_date(),1),'-','')
AND active_type in ('1','2','4') AND active_type in ('1','2','4')
)t1 )t1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment