SAP WEBi report SQL generating automatic Join

Hi ,

I have sum objects and count objects from universe and I dragged these sum objects and count objects to query panel . When i see SQL in "viewSQL" it shows me two select statements and both are joined. I didn't join then while i selected I just took from same universe. Please help me to know why I am getting like this
Sunshine007Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
One of 2 things is happening

You have selected objects that are in different contexts but they aren't setup properly or the calculated fields can't be calculated in a single query without one or the other calculating incorrectly.

If you look at the SQL you will see some of it is shared and other parts are unique.

One solution is to fix the universe if it can be.  The other is to use 2 queries and merge them on the appropriate fields.

mlmcc
Sunshine007Author Commented:
Hi ,

Thanks for the info. I am wondering what would be the error at Universe I tried to change the field to other  class but still it didn't work. Could you please assist me to find out what might be the issue
Sunshine007Author Commented:
Hi I found my answer : here is the reason and solution for it
Queries that span multiple contexts will generate multiple SQL statements. How these statements are run, and combined, will depend on the JOIN_BY_SQL parameter in the universe. By default, Web Intelligence will generate a separate SQL statement for each context, as well as each measure from a different table. It will then run those SQL statement in parallel, and merge the results after the data has been retrieved. If the JOIN_BY_SQL parameter is set to Yes, then Web Intelligence will generate a single SQL query, with multiple Selects, and a FULL OUTER JOIN between each Select.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlmccCommented:
It isn't where the object is in the class but rather which joins are associated for contexts.

In some cases you can create a new context or ad to an existing one so all the required joins are in one context.

For calculations short of creating some complex calculations I found using separate queries to be the easiest to do.

mlmcc
Sunshine007Author Commented:
Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SAP

From novice to tech pro — start learning today.