Hi all,
When am trying to run the query, it is taking 20hrs to run the query.
we done the collect stats for all the tables by giving Diagnostic collect stats
help me to improve the query performance.
SEL Col1,Col2,Col3,.... Col200 From
Table18 Left Join
(Table1 Inner Join Table2
On Table1=Table2
Inner Join Table3
ON Table1=Table3
Inner Join Table4
ON Table1=Table4
Inner Join Table5
ON Table1=Table5
Inner Join Table6
ON Table1=Table6
Inner Join Table7
ON Table1=Table7
Inner Join Table8
ON Table1=Table8
Inner Join Table9
ON Table1=Table9
Inner Join Table10
ON Table1=Table10
Inner Join Table11
ON Table1=Table11
Inner Join Table12
ON Table1=Table12
Inner Join Table13
ON Table1=Table13
Inner Join Table14
ON Table1=Table14
Inner Join Table15
ON Table1=Table15
Inner Join Table16
ON Table1=Table16
Inner Join Table17
ON Table1=Table17)DT
ON DT.COL=Table18.COL
AND table18.datecol between DT.datecol and Dt.datecol1
Tags:
Forums: