MSAMM
Back to course

Oracle Fusion Technical: Reports, Data, Integrations and Extensions · Module 4 · BI Publisher: data models, templates and bursting

SQL data sets: writing the query

Lesson 31 of 177 · 2 min

The query runs on the Fusion database, as the report, against the tables and views Oracle exposes. Not against your own schema, because you do not have one; not with DML, because it is refused. A SQL data set is a SELECT and nothing else. THE FIRST QUERY MOST PEOPLE WRITE IS CORRECT AND UNUSABLE. It joins the header to the lines to the distributions to the supplier to the payment, returns every column of each, and works beautifully against a hundred test rows. At production volume it either times out or returns a result set so large that the template spends longer rendering than the query did running. The joins that will hurt you are the one-to-many ones you did not notice. One invoice with three lines and two payments returns six rows, and every header value is repeated on all six — so a template summing an amount

The full lesson is part of the course

The video, the complete written lesson and the module quiz are included in Oracle Fusion Technical: Reports, Data, Integrations and Extensions, with a certificate on completion and a fourteen-day refund window.

Get the free lessons by email

We will email you a link to every free lesson in this course. No account needed, and one message only.

In this module: Module 4 · BI Publisher: data models, templates and bursting

  1. 1What a data model actually isFree preview
  2. 2SQL data sets: writing the query
  3. 3Parameters and lists of values
  4. 4Bursting: one run, many recipients
  5. 5RTF templates: the practical subset
  6. 6Excel and eText templates
  7. 7Sub-templates and reuse
  8. 8Layout, pagination and the printed page
  9. 9Localisation: Arabic, dates and numbers
  10. 10Performance: making a slow report fast
  11. 11Security in BI Publisher
  12. 12Scheduling and delivery
  13. 13What breaks: five BI Publisher failures
  14. 14Lab briefing · A supplier statement, end to end