Although a couple of questions were already posted in SO about the difference between Over Partition By
and Group By
, I did not find a definitive conclusion about which performs better.
I set up a simple scenario at SqlFiddle, where Over (Partition By)
seems to boast a better execution plan (I am not much familiar with them, however).
Is the amount of data in the tables supposed to change this? Does Over (Partition By)
then ultimately performs better?