Thanks Dieter for u r help & time :) The data volume was around 30 to 40 million so thought that inserting into volatile table and collecting stats might help reduce the execution time. Yes Dieter, thats what the query does, thanks again for this elegant and simple solution will try this method also.
Thanks Dieter for u r help & time :)
The data volume was around 30 to 40 million so thought that inserting into volatile table and collecting stats might help reduce the execution time.
Yes Dieter, thats what the query does, thanks again for this elegant and simple solution will try this method also.