I am trying to use the OVER
Clause to return one row. My code is as follow:
SELECT SUM(Price) OVER (ORDER BY [InvoiceID] ROWS UNBOUNDED PRECEDING)
FROM dbo.Sales
WHERE InvoiceID = 3427
I want to return:
InvoiceID Price
3427 15.00
Instead what returns is:
InvoiceID Price
3427 5.00
3427 10.00
3427 15.00
How do I get just the one row?