BJCooperIT
Programmer
I am writing queries on production tables. My problem is a recursive table that has multiple rows for the logical primary key. It contains over 20 million rows. Simplified it would be something like:
There are indexes on the highlighted columns. I need to select rows where FK_CARS is null and join to a second table, but the query is timing out. The index on FK_CARS does not help when nulls are involved. Does anyone have tip that could help speed up the queries? I am fast running out of ideas to try. Oh, did I mention that I only have SELECT privileges?
Beware of false knowledge; it is more dangerous than ignorance. ~George Bernard Shaw
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
My website: www.EmuProductsPlus.com
Code:
Table=CARS
[b][COLOR=blue]
KEY[/color] PERSON MAKE YEAR [COLOR=red]FK_CARS[/color][/b]
001 BJC CHEVY 2001
002 BJC TOYOTA 1986 001
003 BJC PEUGEOT 1976 001
Beware of false knowledge; it is more dangerous than ignorance. ~George Bernard Shaw
Consultant Developer/Analyst Oracle, Forms, Reports & PL/SQL (Windows)
My website: www.EmuProductsPlus.com