Author: Arun Raj
Posted: Tue Sep 27, 2016 9:49 pm (GMT 5.5)
magesh23586,
AFAIK it would require the same passes of data.
Besides you have used the SUM operator that requires 'sorting' of data. What I posted earlier was a SORT COPY, which does not require any sorting. Always the direction should be to avoid sorting of data whenever there is no need to. Saving resources should be the priority, we may not always gain by doing something in 'one step'.
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard
Posted: Tue Sep 27, 2016 9:49 pm (GMT 5.5)
magesh23586,
AFAIK it would require the same passes of data.
Besides you have used the SUM operator that requires 'sorting' of data. What I posted earlier was a SORT COPY, which does not require any sorting. Always the direction should be to avoid sorting of data whenever there is no need to. Saving resources should be the priority, we may not always gain by doing something in 'one step'.
_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard