30 Nov 2015
You must have an aggregate function before the window specification, e.g. MAX, even though you are limiting to a single row. Also, don't you want the same date ordering (DESC)? ...RESET WHEN MNT_MRGN_CALL_STS_RSN_TX <> MAX(MNT_MRGN_CALL_STS_RSN_TX) OVER (PARTITION
BY
ENTP_PRTY_ID
ORDER
BY
SRC_SYS_PROC_DT DESC
ROWS
BETWEEN
1 PRECEDING
AND
1 PRECEDING)...
You must sign in to leave a comment.
I'm trying to reset a partition based upon a change of status in a text field. Is this possible?
I keep getting a Syntax error looking for a character between MNT_MRGN_CALL_STS_RSN_TX and OVER.
Thanks!