I want to optimize a sentence about group by. I don"t know where to start. I want to find a train of thought
.SELECT
adv_id,
network_id,
SUM(re_click) AS clk,
SUM(deny_click) AS dny_clk,
SUM(re_conver) AS re_ins,
SUM(mat_conver) AS mat_ins,
SUM(def_conver) AS def,
SUM(cost) AS cost,
SUM(earn) AS earn
FROM ams_data_hourly_2018_03
WHERE start_time
BETWEEN 1519862400 AND 1519948799
GROUP BY
adv_id,
network_id
explain:
:
ask for advice