Hi, newbie here. I've done a search for this and couldn't find anything - if there are any similar questions that have been resolved then please post the link and disregard this post! Also, if this is in the wrong place, feel free to move it.
Basically I have two tables, Ticket and TicketUpdate as follows:
Ticket ( ID, Problem, Status, Priority, LoggedTime, CustomerID , ProductID )
TicketUpdate ( ID, Message, UpdateTime, TicketID , StaffID )
where Status is either 'open' or 'closed', and LoggedTime and UpdateTime are both timestamps. Every time an update is made to a ticket, a new record is entered in the TicketUpdate table, so one Ticket can have many TicketUpdates.
What I am trying to do is display the Ticket information along with the most recent TicketUpdate. Everything I try with joins and max(UpdateTime) doesn't seem to work. Any help you can give would be greatly appreciated.
Edit: I'm using DB2 v8.1 on Windows XP Pro if it's important.
Thanks!
Dexy