Select the oldest record of a certain group until it changes pattern, in SQL – Mysql
I am trying to get the oldest record for every status update/change in the following table. Table (status_updates) : id entity_id status date 7 2 Approved 2022-02-10 6 2 Approved 2022-02-05 5 2 Approved 2022-02-04 4 2 OnHold 2022-02-04 3…