1
我有以下的查詢和數據:如何梳理彙總
select * from (
select provider, title, sum(customer_price) revenue from `100`
group by provider, title
with rollup
) x
where provider is not null
這給了我:
我想通過以下標準對它進行排序:
- 首先,由提供者根據其收入
- 其次,標題ASC
所以,結果應該是,然後:
provider title revenue
Electric Entertainment NULL 41.95
Electric Entertainment Leverage, Season 4 31.99
Electric Entertainment The Cross My Heart Job 2.99
Electric Entertainment The Inside Job 1.99
Electric Entertainment The Radio Job 1.99
Electric Entertainment The Scheherazade Job 2.99
...etc...
我將如何排序上面?