I have a table for various objects and their events along with datetime. The table tracks the objects and all the events that go through like an event log. Each time something happens to the object, a new record is created.
How would I query the table to find ALL the objects with a certain last status.
for example, a room can be painted, carpeted, cleaned.. etc and each event can be done any number of times in any order. I want to find all the rooms which were painted as their last status/event.
How would I query the table to find ALL the objects with a certain last status.
for example, a room can be painted, carpeted, cleaned.. etc and each event can be done any number of times in any order. I want to find all the rooms which were painted as their last status/event.