我遇到了一个问题,我想在一个查询中选择两个不同的查询,但是它们需要放在不同的列中。 注意:不像union,因为union会将这两个查询放在一列中。
select count(id) as lead,SUM(ol.publisher_earned) as earning from offer_process as ol
where ol.status='Approved' and ol.publisher_id='1738' and ol.created_at>='2021-08-01' GROUP by date(ol.created_at)
select count(ol2.id) as clicks from offer_process as ol2 where ol2.publisher_id='1738' and ol2.created_at>='2021-08-01' GROUP by date(ol2.created_at)