How to update the status to 'Active' when the condition is :
max(audit_date) and max(audit_sequence) then update status to 'Active' for all different product.
There are many product whose max(audit_date) is different as well as max(audit_sequence).
PFA.
Product | audit_date | audit_type | audit_sequence | status |
809005 | 2013-06-04 | 3 | 883469 | InActive |
809005 | 2013-06-04 | 4 | 883470 | Active |
725505 | 2013-10-29 | 4 | 919036 | InActive |
725505 | 2013-11-16 | 3 | 921387 | InActive |
725505 | 2013-11-16 | 4 | 921388 | Active |