0
我试图用旋转来显示我的信息。我想用一个子查询在报表中选择列:当我尝试使用子查询获得的国家名单枢轴与子查询的Oracle SQL
select * from
(select continent, country, population
from continents, countries
where continents.id=countries.id
)
pivot (sum(population) for country in (select distinct country from countries)
我不断收到一个错误。
我尝试使用XML转动,但没有工作,要么因为它返回无意义的XML代码。 我想看看实际的数字!
你好。你能发表你的表格结构和一些样本数据吗?也请尝试使用ANSI-92 JOIN语法而不是ANSI-89。 – yamny 2014-09-25 08:03:02
流水线功能(http://www.oracle-base.com/articles/misc/pipelined-table-functions.php) – SriniV 2014-09-25 11:27:32