I have a table with a user Account,the current status of the account and the Timestampe of any changes made to the status. When i run the following command for 2 specific accounts it brings back every date & time a change has occured but i only need the most recent date and time for each account.
When i try to include a Group BY ACCOUNT i get the following error:
"must be GROUPed or used in an aggregate function"
Any assistance would be much appreciated.
select ACCOUNT, Status,LAST_UPDATE_TIMESTAMP
from ACCOUNT_ROLE
where ACCOUNT in (123456789,987654321);