$ 0 0 Hi, you can use MAX(status_date) OVER (PARTITION BY policy_no ORDER BY status_date ROWS BETWEEN PRECEDING 1 and PRECEDING 1) or something similar to get the "previous" date for the dates you mention. Regards, Vlad.
Hi,
you can use
MAX(status_date) OVER (PARTITION BY policy_no ORDER BY status_date ROWS BETWEEN PRECEDING 1 and PRECEDING 1)
or something similar to get the "previous" date for the dates you mention.
Regards,
Vlad.