SQL Performance (MOSC)

MOSC Banner

SQL Rewriting

edited Jul 3, 2015 10:04AM in SQL Performance (MOSC) 1 commentAnswered

Hi - is there a better way of rewriting this query ,Please help!

SQL MONITOR REPORT has been attached, actually it took more than 1.5 report as against the report, but what I'm looking here is how to rewrite the query.

delete from ps_proj_resource a   

WHERE business_unit = 'UGBL'

and ACCOUNTING_DT = '11-JUN-15'

and  analysis_type <> 'BLD'

and (resource_id_from) in (

        select  business_unit, project_id, resource_id_from from ps_proj_resource a   

            WHERE business_unit = 'UGBL'

            and ACCOUNTING_DT = '11-JUN-15'

            and EXISTS

          (SELECT 'x'

             FROM sysfs.DEL_PS_Q_LIMS_MNTH_TMP

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