Query Tunning [message #477002] |
Mon, 27 September 2010 15:00 |
bhatwalne
Messages: 2 Registered: September 2010 Location: Charlotte
|
Junior Member |
|
|
SELECT DISTINCT a.colA, a.ColB, a.ColC
FROM TableA a, TableB b
WHERE a.ColA = b.ColA AND b.ColA IS NULL;
TableB has approx 2.6 million records while TableA is much smaller
However, this query takes days to complete
I am not a Oracle guy, and I need to get this query optimised to execute in minutes
|
|
|
|
|
|
Re: Query Tunning [message #477007 is a reply to message #477002] |
Mon, 27 September 2010 15:16 |
bhatwalne
Messages: 2 Registered: September 2010 Location: Charlotte
|
Junior Member |
|
|
My mistake...
Till I post some more information I'll correct the query here:
SELECT DISTINCT a.colA, a.ColB, a.ColC
FROM TableA a, TableB b
WHERE a.ColA = b.ColA AND b.ColB IS NULL;
|
|
|
|