on 10-02-2008 3:28 PM
I'm trying to understand how webi behaves in a situation like this:
- universe with contexts
- query in webi uses objects from both contexts
- so one query would generate 2 Select statements -> normal behaviour so far.
question:
How are the 2 Select statements combined?
- Does webi send each Select separately to the db and then the db handles the combination of queries?
- Or does webi send a combined query (Select 1 + Select 2) to the db? In that case, how does webi combine the query (union, intersection)?
Many thanks in advance,
R
When you are applying Combined Query in Webi (Select1+Select2) the combined query is fired to the database not individually.
If your database supports combined query types then (Sel1+Sel2) will be fired to the database based on which combination you select.
In a union combination, Web Intelligence takes the all the data from both queries, eliminates duplicate rows, and builds a combined data set.
In an intersection combination, Web Intelligence returns the data that is common to both queries.
In a minus combination, Web Intelligence returns the data in the first query that does not appear in the second.
For Eg:
You have a 2 queries containing the following data.
Q1: US,UK,Spain,France
Q2: US,Germany
Now for Union the output of the combined query will be:
= US,UK,Spain,France,Germany
For Intersection the output will be:
= US
For Minus the Output will be:
= UK,Spain,France
Let me know if this helps..
Regards,
Soumyadutta Roy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.