Database Tuning (MOSC)

MOSC Banner

How to tune the SQL

edited May 30, 2012 4:38PM in Database Tuning (MOSC) 9 commentsAnswered
Experts,      Can give me some idea for the SQL?  SQL detail as following:
     ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SELECT /*+ parallel(statclaim) parallel(lastendorse)*/
    LastEndorse.statdate,
    LastEndorse.StartDate, LastEndorse.COMCODE, LastEndorse.RISKCODE, LastEndorse.SHAREHOLDERFLAG, LastEndorse.BUSINESSNATURE,
    LastEndorse.PolicyType, LastEndorse.CENTERCODE, LastEndorse.Agentcode, LastEndorse.Handler1code, LastEndorse.AimClient,
    LastEndorse.UnderwriteCode, LastEndorse.SumQuantity, LastEndorse.GroupCode, COUNT(*) as NoPaidCount, 0 as SumClaim, 0 as CarClaim,
    0 as PersonClaim, 0 as SumLoss, 0 as CarLoss, 0 as PersonLoss, LastEndorse.ANADate, LastEndorse.CountryNature,
    LastEndorse.ChsABKindFlag, LastEndorse.ChsMKindFlag, LastEndorse.RelatDim, LastEndorse.BusinessKind, LastEndorse.BusinessClass,
    LastEndorse.UseYears, LastEndorse.InsuredType, LastEndorse.SeatCount, LastEndorse.TonCount, LastEndorse.UseNatureCode,
    LastEndorse.CarKindCode, LastEndorse.businessflag, StatLclaim.reportdate, StatLclaim.damagestartdate, LastEndorse.underwriteenddate,
    LastEndorse.ExhaustScale, decode(StatLclaim.catastrophecode1, '007', '1', '0'), LastEndorse.businesssource,

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