sql - OVER ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW not working. Incorrect syntax near 'ROWS' -
select dtotalcharge, icarrierinvoicedetailsid, dtpickupdate, vctrackingnum, sum(dtotalcharge) on (partition icarrierinvoicedetailsid order dtpickupdate, vctrackingnum rows between unbounded preceding , current row) runningtotal tblcid
getting error:
msg 102, level 15, state 1, line 6
incorrect syntax near 'rows'.
any idea wrong this. had problem before pivot
before. these examples out of 70-461
training kit. confused.
Comments
Post a Comment