Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Using row_number()

    Phil,

    Please replace "SUM(BalanceOutstanding) AS BalanceOutstanding" with "BalanceOutstanding" in the top-select (outer query)...

    ...because of two reasons (as I can visualize):

    1. SUM(...) is an aggregate (group) function and you should GROUP BY...

Viewing post 1 (of 1 total)