|
@@ -576,7 +576,7 @@ concat(da60-da59 ,',' ,da60/cost ,',', (da60-da59)/cost ,',' ,da60/da1) d60,
|
|
concat(dm3-da60 ,',' ,dm3/cost ,',', (dm3-da60)/cost ,',' ,dm3/da1) m3,
|
|
concat(dm3-da60 ,',' ,dm3/cost ,',', (dm3-da60)/cost ,',' ,dm3/da1) m3,
|
|
concat(dm4-dm3 ,',' ,dm4/cost ,',', (dm4-dm3)/cost ,',' ,dm4/da1) m4,
|
|
concat(dm4-dm3 ,',' ,dm4/cost ,',', (dm4-dm3)/cost ,',' ,dm4/da1) m4,
|
|
concat(dm5-dm4 ,',' ,dm5/cost ,',', (dm5-dm4)/cost ,',' ,dm5/da1) m5
|
|
concat(dm5-dm4 ,',' ,dm5/cost ,',', (dm5-dm4)/cost ,',' ,dm5/da1) m5
|
|
-from ( select * from dw_channel where 1=1 {op1} {op2} {op3} {op4} ) a
|
|
|
|
|
|
+from ( select * from dw_channel where cost>0 {op1} {op2} {op3} {op4} ) a
|
|
left join dw_channel_amount_daily b on a.channel=b.channel and a.dt=b.dt
|
|
left join dw_channel_amount_daily b on a.channel=b.channel and a.dt=b.dt
|
|
{op5}
|
|
{op5}
|
|
"""
|
|
"""
|