Re: Optimize Inner Join With WHERE BETWEEN dates
Also change this like I suggested:
AND a.ClockIn <> b.ClockOut
AND a.ClockOut <> b.ClockIn
AND ( a.ClockIn BETWEEN b.ClockIn AND b.ClockOut
OR a.ClockOut BETWEEN b.ClockIn AND b.ClockOut
)
My suggested indexes can't be used with that OR.
Subject
Views
Written By
Posted
4235
May 21, 2013 07:32PM
1744
May 22, 2013 06:41PM
1699
May 24, 2013 12:40PM
1555
May 25, 2013 11:43AM
1630
May 30, 2013 05:30PM
1533
June 02, 2013 01:15PM
1693
June 03, 2013 05:02PM
Re: Optimize Inner Join With WHERE BETWEEN dates
2901
June 04, 2013 11:49PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.