It is necessary to combine the result from two tables.
(SELECT 0 as conversions, SUM(clicks) as clicks FROM general_report WHERE _offer_id = 1043 AND _aff_id = 9 AND (`date_time` BETWEEN '2017-05-24' AND '2017-05-24')) UNION (SELECT COUNT(*) as conversions, 0 as clicks FROM conversion_report WHERE _offer_id = 1043 AND _aff_id = 9 AND (DATE(conversion_time) BETWEEN '2017-05-24' AND '2017-05-24')) At the exit I get
+-------------+--------+ | conversions | clicks | +-------------+--------+ | 0 | 1547 | | 24 | 0 | +-------------+--------+ I need
+-------------+--------+ | conversions | clicks | +-------------+--------+ | 24 | 1547 | +-------------+--------+ What am I doing wrong ?
0 as conversionsin the first and0 as clicksin the second select? - MihailPw