2
Answers

Invalid column Row No

Ramco Ramco

Ramco Ramco

1w
67
1

Hi

  I am getting error - Invalid column Row No. on below line

PARTITION BY A."Account" ORDER BY "Row No"

SELECT
ROW_NUMBER() OVER (PARTITION BY Account ORDER BY A."Account") AS "Row No",
A."Account" AS "Account",(A."Debit") AS "Debit", 
SUM(A."Debit" - A."Credit") OVER(PARTITION BY A."Account" ORDER BY "Row No") AS [Cumulative Total]

From Master 

Thanks

Answers (2)