View Single Post
Join Date: Jul 2008
Posts: 5
Reputation: deniseaddy is an unknown quantity at this point 
Solved Threads: 0
deniseaddy deniseaddy is offline Offline
Newbie Poster

Re: Trouble Ticket System

 
0
  #3
Oct 15th, 2008
Thanks for your help.

I've actually used the solution given to me in another forum and it seems to work:

  1. SELECT TicketID,
  2. Date,
  3. Category,
  4. STATUS
  5. FROM (
  6. SELECT TicketID,
  7. Date,
  8. Category,
  9. STATUS,
  10. ROW_NUMBER() OVER (PARTITION BY TicketID ORDER BY Date DESC) AS RecID
  11. FROM Tickets
  12. ) AS d
  13. WHERE RecID = 1
Reply With Quote