у меня есть запрос
select
city,
month,
month_number,
sum(totalcount) as totalcount,
sum(total_value) total_value
from
(
select
city,
to_char( testdate, 'Mon') month,
to_number( to_char( testdate, 'mm' ) ) month_number,
count( totalcount ) totalcount,
sum( total_value ) total_value
from
testtable
group by
city,
testdate
)
group by
city,
month,
month_number
order by
1,3
, который дает результат как изображение 1, как изменить этот запрос, который может дать результат как изображение 2?
![image 1](https://i.stack.imgur.com/8ljUs.jpg)
![image 2](https://i.stack.imgur.com/ZfY2x.jpg)