Thanks for your response to my query, I did exactly what you mentioned. I have a follow up question though.
Portlet runs super fast if I reference ONLY the staging table without below given parameter.
When I try to add in below given parameter and one more join shown below, portlet takes forever to load. I join this code with my staging table so I can pull out TEAM_V2.REQUIREMENT_NAME
LEFT OUTER JOIN ODF_TEAM_V2 TEAM_V2 ON (TEAM_V2.PRPROJECTID = TAB.PROJECT_ID_BROWSER AND TEAM_V2.INVESTMENT_TYPE = TAB.ODF_OBJECT_CODE)
I have a 'where' clause in my NSQL which is filtering on basis of TEAM_V2.REQUIREMENT_NAME and I really need this where clause.
.
Here's my where clause:
WHERE
TEAM_V2.REQUIREMENT_NAME IN
(
SELECT DISTINCT S.FULL_NAME REQUIREMENT_NAME FROM PRTEAM PR
INNER JOIN SRM_RESOURCES S ON S.ID = PR.PRRESOURCEID
INNER JOIN SRM_RESOURCES R ON PR.PRROLEID = R.ID
WHERE R.ID IN (5202003, 5202009, 5202012, 5202025, 5004026)
AND S.FULL_NAME = @NVL@ ( @WHERE:PARAM:USER_DEF:STRING:RESOURCE_SELECT@ ,S.FULL_NAME)
)
I cannot print out TEAM_V2.REQUIREMENT_NAME in SELECT clause because it starts giving multiple records / duplicate dimension error
I just need to filter on its basis.
Now since I created view and staging table, i cannot access TEAM_V2.REQUIREMENT_NAME anymore and I am trying to join this table with staging table which is causing portlet to die out.