I would like to retreive records from a table for based on the maximum date for each type of record.
Example table looks like this
job complete_date note null 2012-01-01 00:00:00.000 Test 1 null 2012-02-05 00:00:00.000 Test 2 null 2012-12-10 00:00:00.000 Test 3 123 2012-10-11 00:00:00.000 Test 4 123 2012-10-15 00:00:00.000 Test 5 456 2012-12-17 00:00:00.000 Test 6
My results should look like this
job complete_date note null 2012-12-10 00:00:00.000 Test 3 123 2012-10-15 00:00:00.000 Test 5 456 2012-12-17 00:00:00.000 Test 6
You can see that I want to retreive only each job based on its max completed date. I was thinking of trying to use a max within a gouping, but having not luck
Hope this makes sense, any help would be much appreciated.