The SUM() forces the sort.
Because the SUM() is for each group it forces the access plan to sort rows so it can sum all rows pertaining to a group.
To prove it, remove the sum()...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only