Advice Using Pivot Table in Oracle

后端 未结 4 644
长情又很酷
长情又很酷 2020-11-30 14:47

i need a report and i should use pivot table for it.Report will be group by categories .It is not good to use case when statement because there are many categories.u can thi

4条回答
  •  攒了一身酷
    2020-11-30 15:15

    I use reporting tools to produce reports, it helps to keep views and queries clean and without formatting. Usually users ask for Excel and Excel is a very good reporting tool by itself. Excel has a lot ways to import data, but I suggest XML as input because you can open it as a regular Excel table.

    1. Use Excel to Open XML file with sample data
    2. Select Table and Click "Insert Pivot"
    3. Add formatting and save this file as template

    Excel remembers path to data XML file and you just have to replace data to refresh report. There are many other ways, I use JAVA application on web server to merge Excel template and SQL output. This code is free and open source but it won't help for non JAVA developers https://github.com/jbaliuka/x4j-analytic There are many other reporting tools to produce "professional" reports.

提交回复
热议问题