- To create a parent child report in SQL Developer Click on the View Menu and then Reports.
- Give the report a name and in the SQL box enter the sql for the parent report.
- Click Apply
- Go Back to reports and edit the report.
- Click on child reports and enter a name for the child report.
- On the tree on the left hand side, expand child reports and click on SQL Query.
- Save the report.
- Double click the report in the reports tree to run it. When an entry in the parent report is selected the appropriate children in the child report are shown.
Once reports is shown right click on User Defined Reports and select New
Enter the query for the child report.
In this report the child report ties to the parent report via the deptno number.
The deptno number of the parent report is referenced by :DEPTNO. The bind variable must be in upper case and must be prefixed with a colon.
No comments:
Post a Comment