SSC-EWI-TD0077
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
