I have the following simple select statement:
SELECT ID, EVENT, TIMESTAMP from table
order by ID, TIMESTAMP;
I now want to get for every ID only the entry with the last timestamp, i.e. with the max(TIMESTAMP). How can I get this? Do I have to use a subquery?