【发布时间】:2020-12-15 23:19:22
【问题描述】:
我需要将四个查询的结果集合并为单个结果输出。
例子:
Select sum(marks) total from table1 Where id > 1000 and id < 2000
Select sum(marks) total1 from table1 where id =>2000
Select sum(tables) totaltbl from table2 where id > 1000 and id < 2000
Select sum(tables) totaltbl1 from table2 where id => 2000
我需要以下格式的输出
Total total1 totaltbl totaltbl1
100. 2000. 10. 30
【问题讨论】:
标签: sql oracle join aggregation