If your multiple datasets are coming from the same datasource, I recommend combining the queries.
If the multiple datasets are coming from different datasources, you can link them together using the Joint Data Set functionality in BIRT.
To link two separate datasets together:
- Right-click on Data Sets in the Data Explorer pane within the BIRT Report Designer, and select New Joint Data Set.
- On the New Joint Data Set dialog, select the data set and field (Operator, here) to be joined from on the left-hand list.
- Select the join type (Inner, Left Outer, Right Outer, Full Outer) from the options between the two lists.
- Select the data set and field (Operator again, here) to be joined to on the right-hand list.
- Give the resultant new dataset a meaningful name, in the option at the bottom of the dialog.
- Click Finish.
- Edit the resultant dataset to produce output as required, from the Edit Dataset dialog.
You can only produce joint datasets from no more than two existing datasets. However, joint datasets can themselves be included as input datasets for other joint datasets - so if you need to join three datasets together, this can be achieved by linking two of them into one joint dataset, then creating a new joint dataset based on the first joint dataset and the third original dataset.
It is not necessary to paramterise any of the existing queries to join datasets. A parameter condition on Operator in the query should only be included if the intention is to restrict the Operators returned in that dataset (eg. to return operators 100-121 only).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…