Quote:
Originally Posted by tonkuma
Indexes for REQUESTS.REQUEST_NUMBER and REQUESTS_MERGER.REQUEST_NUMBER may improve performance.
|
Thanks a lot tonkuma,
For those who are interested, I created UNIQUE indexes on both the original and merger tables using the syntax:
CREATE UNIQUE INDEX SR_MAIN
ON REQUESTS (REQUEST_NUMBER);
CREATE UNIQUE INDEX SR_MERGE
ON REQUESTS_MERGER (REQUEST_NUMBER);
The query now runs in 5 seconds as opposed to 8 hours! Thanks again for your help