Hello Saramaia,
Without an example this one is bound to be answered in general terms, so here it goes:
1. If your dataset returns one set of objects , you can pay around with combined queries. (union,difference,cross-section) and the query panel gives you oppurtunity to create a complex correlated query with one dataprovider.
2. If input for top-query depents on result of a subquery,you can also handle this just in query-panel with a single data-provider.
3. If conditions differ for different sets of datasets returned you run into the limitation that the where part in SQL can only reference a table once (i.e. the where clause stands for all data returned. You can not solve this by creating universe-objects with where-clauses, cause the net result when using 1 dataprovider still gives you excluding where-clause.
The obvious (well, in BO case) is to split the input for the report into more than one dataprovider. At report level you have the opportunity to link the common dimensions (Data --> View Data) of both (or more than 2) datasets.
Suppose I want to fetch data for a range of customers and use 2 dataproviders. If both datasets contain the dimension 'Customer' BO will automatically link them at report level. Now set object 'Customer'from the first dataprovider as a master and you can show data from the second dataset as well as data from the first dataset within the section.
The matter becomes more complex if you want to show data from both sets in one table or crosstab.
All dimensions used in the table should be of the linked type, otherwise you get a compatibility error message. However you can freely use measures from both sets in the table. The total of information shown should resemble a full outer join between datasets. If you want to show a non-measure in the table that represents a dimension but is not of the linked kind, define it at universe-level as a detail.
T. Blom
Information analist
Shimano Europe
tbl@shimano-eu.com