0
Could someone give me a hand in using Oracle’s Function MAX()???
I need to do a query that returns only the last record of a history table, but I need to return 3 (three) columns of this record -> Id, Ticket_id and Queue_id, but if I use the query as follows the query is not executed due to an error in GROUP BY.
To run the query I should add the QUEUE_ID column in GROUP BY as follows:
But this way the result does not return the last record by MAX(ID) and yes returns 2 records, as below:
And I just need the last entry, in case it would be 53474 with Queue_id 22.
Does anyone know how to create this type of query on Oracle?
Tried a subselect with max ?
– Motta