表一语句如下
select mode,sum(pv) as 2020年8月1日
from
(SELECT a.pv,a.name,b.mode,b.id,a.mytime,a.new_on_the_day
from 2020_08_data a,charging_id_information b
where a.pid = b.id
and a.mytime = '2020-08-01')a
GROUP BY mode
ORDER BY mode DESC
表二语句如下
select mode,sum(pv) as 2020年8月2日
from
(SELECT a.pv,a.name,b.mode,b.id,a.mytime,a.new_on_the_day
from 2020_08_data a,charging_id_information b
where a.pid = b.id
and a.mytime = '2020-08-02')a
GROUP BY mode
ORDER BY mode DESC
表三语句如下
select mode,sum(pv) as 2020年8月3日
from
(SELECT a.pv,a.name,b.mode,b.id,a.mytime,a.new_on_the_day
from 2020_08_data a,charging_id_information b
where a.pid = b.id
and a.mytime = '2020-08-03')a
GROUP BY mode
ORDER BY mode DESC
想问下各路大神怎么写能得出表四 谢谢各位