SQL Tuning Advise
3206Oct 20 2003 — edited Oct 20 2003Hello
I have a very huge table to join itself.
SELECT
.....
FROM huge_table a,
(select id,MAX(txndate)
from huge_table
where .....
group by id) b
WHERE a.id = b.id
AND a.txndate = b.txndate;
I found this statement really a time-consuming statement after execute it. Anyone have good idea to tune this ?
Thanks
Regards,
ckwan