MSCEWI2077
RESET WHEN clause is not supported in this scenario due to its condition
Severity
Description
Example code
Condition is not binary
Input code:
SELECT
account_id,
month_id,
balance,
ROW_NUMBER() OVER (
PARTITION BY account_id
ORDER BY month_id
RESET WHEN balance IS NOT NULL
ROWS UNBOUNDED PRECEDING
) as balance_increase
FROM account_balance
ORDER BY 1,2;Output code:
Condition expression was not found
Input code:
Output code:
Recommendations
Last updated
