لینک زیر روشهای مختلف همراه با پرفورمنس بررسی شده اند
https://sqlperformance.com/2014/01/t...running-totals