on 09-04-2011 5:04 AM
Hi
Is there any possiblity to change sql at universe leavel.Kindly help me i am new to designer.
The below is the BO generated query.
SELECT specObjID
FROM SpecObj
WHERE SpecClass = dbo.fSpecClass('UNKNOWN')
-
-
Users are not intrested to go for coustomised sql in report leavel.
I need to change the above sql accordingly due to some performance issues.
The feilds that specify in the where clause SpecClass = dbo.fSpecClass('UNKNOWN') move to from clause.
Like below
SELECT specObjID
FROM SpecObj ,SpecClass = dbo.fSpecClass('UNKNOWN')
WHERE
-
-
Kindly suggest me greatly appriciated.
Thanks.
Raj
HI,
As per your expectation query like below is not possible to give condition in from clause as per my understand,
SELECT specObjID
FROM SpecObj ,SpecClass = dbo.fSpecClass('UNKNOWN')
WHERE
I think your expected result can be achieved by giving condition while creating the object SpecObj.
Steps:
Go to universe, then edit the object SpecObj there you can give the where clause condition
WHERE SpecClass = dbo.fSpecClass('UNKNOWN')
This will increase your performance.
Regrds,
Ragoth.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, you can adjust whether a condition appears in the "from" or "where" clause by using ANSI 92 joins, and then updating the universe to show which objects should appear in the from clause. I wrote a blog post about this a while back that was specific to using outer joins, but I would think the same approach would allow you to solve the problem as you described it.
http://www.dagira.com/2010/08/17/handling-conditions-on-outer-joins/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try to create a derived tabke as per the datarestriction you want. Join this table to other tables in the universe. Create Object and classes.
Now uese it in the report and see if your getting your desired result.
Hope this will help you out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.