I have a table that contains a timestamp that is captured after each time a particular unique instance (example person) is changed or a transaction takes place on that person.
So for example if my table contains 30 different users that are logged in or logged out or absent or on vacation i want to find the last timestamp for each of those users and what the transaction was. ?
I tried this but with no lucK:
select * from transtable where timestamp in
(select max(timestamp) from transtable)
and userid in (.......)
So for example if my table contains 30 different users that are logged in or logged out or absent or on vacation i want to find the last timestamp for each of those users and what the transaction was. ?
I tried this but with no lucK:
select * from transtable where timestamp in
(select max(timestamp) from transtable)
and userid in (.......)