Postgresql – SQL query to find items which are recently updated and not deleted
I have a table with the structure : Code Time Delete indicator A1 2023-07-26 17:00:00 1 A1 2023-07-25 15:00:00 0 A2 2023-07-26 11:00:00 0 A2 2023-07-25 18:00:00 1 A3 2023-07-22 10:00:00 1 A3 2023-07-26 9:00:00 0 I want a query…