I'm trying to identify the count of objects a user updated during a given day, but only where the user was the final update.
Each object can have multiple updates in a day from any user, but the final update is the one that should be counted.
Each object only has 1 status though--always as a result of the most recent update.
Object_Update_Table
|UpdateID| UserID |timestamp| ObjectID |
| 1 | 3 | today | 1 |
| 2 | 3 | today | 2 |
| 3 | 1 | today | 3 |
| 4 | 1 | today | 3 |
| 5 | 1 | today | 1 |
Object_Table
|ObjectID| Status |
| 1 | failed |
| 2 | failed |
| 3 | progress|
Final desired output of query
|User |count "failed"|
| 1 | 1 |
| 2 | 0 |
| 3 | 1 |