HI All,
I have created universe and report and those are working fine(we created some derived tables in universe and which were working fine.)
Now all queries we implemented were with dimension objects not with primary key attribute.so queries were retrieving the data with non primary key column which will impacts the performance.
So now requirement is need to replace the dimension object with primary key object in all queries and derived tables also.
Those changes I have did and all queries are executing without fail.
But the issue was In all queries group by clause is not forming,but in the first report we don't have any issues like this.
I have checked in the universe query panel the query is forming correct with group by clause,but in the report is not forming ........
Query formed which is in first report
SELECT
max( EIG.RPT.RPT_NM ),
max(EIG_USR_SNAPSHOT_SCHED.USR_SNAPSHOT_KEY)
FROM
EIG.RPT,
EIG.USR_SNAPSHOT EIG_USR_SNAPSHOT_SCHED,
EIG.RPT_SCHED,
EIG.RPT_SCHED_RPT
WHERE
( UPPER(EIG.RPT_SCHED.CREAT_USR_ID)=UPPER(EIG_USR_SNAPSHOT_SCHED.CREAT_USR_ID) )
AND ( EIG.RPT.RPT_KEY=EIG.RPT_SCHED_RPT.RPT_KEY )
AND ( EIG.RPT_SCHED_RPT.RPT_SCHED_KEY=EIG.RPT_SCHED.RPT_SCHED_KEY )
GROUP BY
EIG.RPT.RPT_KEY
Query which is in second report(with primary key column)
SELECT
EIG.RPT.RPT_KEY,
max(EIG_USR_SNAPSHOT_SCHED.USR_SNAPSHOT_KEY)
FROM
EIG.RPT,
EIG.USR_SNAPSHOT EIG_USR_SNAPSHOT_SCHED,
EIG.RPT_SCHED,
EIG.RPT_SCHED_RPT
WHERE
( UPPER(EIG.RPT_SCHED.CREAT_USR_ID)=UPPER(EIG_USR_SNAPSHOT_SCHED.CREAT_USR_ID) )
AND ( EIG.RPT.RPT_KEY=EIG.RPT_SCHED_RPT.RPT_KEY )
AND ( EIG.RPT_SCHED_RPT.RPT_SCHED_KEY=EIG.RPT_SCHED.RPT_SCHED_KEY )
Group by is not forming in the above query....
but in universe query panel for same objects the query is
SELECT DISTINCT
Table__32.RPT_KEY,
max(EIG_USR_SNAPSHOT_SCHED.USR_SNAPSHOT_KEY)
FROM
'EIG'.RPT Table__32,
'EIG'.USR_SNAPSHOT EIG_USR_SNAPSHOT_SCHED,
'EIG'.RPT_SCHED Table__67,
'EIG'.RPT_SCHED_RPT Table__95
WHERE
( UPPER(Table__67.CREAT_USR_ID)=UPPER(EIG_USR_SNAPSHOT_SCHED.CREAT_USR_ID) )
AND ( Table__32.RPT_KEY=Table__95.RPT_KEY )
AND ( Table__95.RPT_SCHED_KEY=Table__67.RPT_SCHED_KEY )
GROUP BY
1
don't know what happening ....really getting frustrated....
I would appreciate will anybody helps....
Thanks in advance....
Regards
Venkat