Situation: I have a table structured as such:
ticket_id date time field2
What I am trying to do is take the table and strip out all duplicates of ticket_id, keeping the most recent according to the time field.
Of course, I can do a SELECT DISTINCT on just the ticket_id field, and I get just the ticket_id results, however, I'm having trouble being able to get the remainder of the fields like this.
Any help would be appreciated in getting this working!
ticket_id date time field2
What I am trying to do is take the table and strip out all duplicates of ticket_id, keeping the most recent according to the time field.
Of course, I can do a SELECT DISTINCT on just the ticket_id field, and I get just the ticket_id results, however, I'm having trouble being able to get the remainder of the fields like this.
Any help would be appreciated in getting this working!