I have three tables, the set up is like this
Computer
table-----
[key]
(int) ComputerID
(String) ComputerName
(String) Department
Ticket
table----
[key]
(int) TicketID
[foreign key]
(int) ComputerID
(datetime) DownTimeStamp
(int) runningStatus
Update ticket
table---
[key]
(int) UpdateID
[foreign key]
(int) TicketID
(datetime) updateTimeStamp
The User creates a ticket and a new ticket is inserted into the table with the date time it was created. A user can come in and update the ticket, indicating whether someone is there to fix the computer, waiting for parts or that the computer is fixed. Each update to the ticket is recorded and a new row is inserted with the time of the edit, into the update ticket table. Depending on what the user is updating, I change the running status of the initial ticket.
The query I have right now is returning a row for each update for example:
Computer 1 updateTimeStamp
Computer 1 updateTimeStamp
Computer 2 updateTimeStamp
Computer 2 updateTimeStamp
How do I return a query that will return just one row with all of the updates? for example:
Computer 1 updateTimeStamp updateTimeStamp
Computer 2 upDateTimeStamp updateTimeStamp