SELECT
dTotalCharge,
iCarrierInvoiceDetailsID,
dtPickupDate,
vcTrackingNum,
SUM(dTotalCharge) OVER (PARTITION BY iCarrierInvoiceDetailsID
ORDER BY dtPickupDate, vcTrackingNum
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS runningTotal
FROM tblCID
获取错误:
Msg 102,Level 15,State 1,Line 6
'ROWS'附近的语法不正确。
知道这有什么问题。我之前在PIVOT
之前遇到了另一个问题。这些是70-461
培训套件中的示例。我很迷惑。