Query help - getting the last record
I have a history table that contains columns requestNo, status, and date. For example. for requestNo 1000, the first status is open and the date. The second record for reqeustNO 1000 might be review and the date, then status process and the date, and then status closed and the date. For requestNO 2000, the first record will be status open, then the next will be status reveiw.
How do I write a query to get the last record for each reqeustNO ? For example, the last record for requestNO 1000 will be status closed and the date. For reqeustNO 2000, the last record is review, and the date, etc.
What I really need to do is to find all last records with status of closed, for each reqeustNO.
Thanks
