I have added JOIN_BY_SQL to the universe parameters. When I create a report and look at the SQL I still see the Synchronization folder with two Select statements in it. Shouldn’t this be one statement now that JOIN_BY_SQL is being used?
No, only if the SQL statements would have been JOINed (instead of synchronized) will one SQL statement be created. Multiple SQL statements will be “merged” into one SQL statement by the universe parameter “JOIN_BY_SQL” if all used dimension and detail objects are the same across all involved universe contexts.
They are both defined as measures that can be aggregated by sum. Does it matter if they are derived tables? I removed the derived logic from the SQL below so its easier to read.
SELECT
MP.MP,
CLAIMS.PUBNBR,
BLLTRN.PAY_AMT
FROM
MP,
CLAIMS,
BLLTRN
WHERE
( MP.MP_LC=BLLTRN.MP_LC )
AND ( BLLTRN.CLMIDN=CLAIMS.CLMIDN )
SELECT
MP.MP,
CLAIMS.PUBNBR,
LOSTRN.PAY_AMT
FROM
MP,
CLAIMS,
LOSTRN
WHERE
( MP.MP_LC=LOSTRN.MP_LC )
AND ( LOSTRN.CLMIDN=CLAIMS.CLMIDN )
Your measures do not have aggregate functions on them. That’s the problem. They need to be defined in the universe with an aggregate function in the select. For example:
Wow. As you can tell I am new to universe designer. Now the folder name changed to JOIN. It still lists two queries but I am guessing that is ok. For all aggregations should I be wrapping the measures with sum()? The alternative is that the aggregation is done in Business Objects vs on the server?
Every measure object should have an aggregate function, such as SUM, COUNT, AVERAGE, etc. Let the database do the aggregating, and return the aggregated results. You’ll get much better performance that way.
I had the same issue available in this post,But i noted the difference in my universe that when i set the JOIN -BY_SQL in Parameters tab to be made as YES or NO i dont find the diff in the display of my sql
In both the method my measure object(with aggreagated) shows in Join folders…
Is Join-By-SQL makes the imapct on the display of sql in folders or in a single statement…if my assumption is wrong…wat is the use of Join By SQL
It will make no difference to the display of, or to the actual SQL statements.
Setting this means the joining of the SQL statements will be done by the database instead of the reporting tool. This should ensure better performance.
Thanks Experts…This forum is wonderful to clarify all my issues i face…Thanks once again for the prompt response in queried …Thank u once again experts.