SQL Performance (MOSC)

MOSC Banner

query needs to be tuned

edited Aug 16, 2013 4:12AM in SQL Performance (MOSC) 8 commentsAnswered
Hi All,

The below query is taking about 14 mins and above  to fetch 3847 records , can you please help me improve the performance of the query,

SELECT   DISTINCT A.SBL_ROW_ID,
         A.STG_DLT_FLG,
         A.FST_NAME,
         A.LAST_NAME,
         A.LOGIN,
         A.SBL_ROW_ID AS SRC_PK,
         REJ.SOURCE_PK AS REJ_SRC_PK
  FROM   DFSTAGING.CTMS_S_DS_CONTACT A, DFSTAGING.CTMS_S_DS_ACTIVITY B, (SELECT   SOURCE_PK
                                 FROM   DFSTAGING.ods_rejection
                                WHERE   SESSN_NM = 's_LD_TMODS_CTMS_ACTION_ITEM_AUTHOR') rej
 WHERE   A.SBL_ROW_ID = B.OWNER_PER_ID
 AND B.SUBTYPE_CD = 'Follow-Up' 

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center