I have a table which I want to get the latest entry for each group. Here\'s the table:
DocumentStatusLogs Table
DocumentStatusLogs
|ID| DocumentID | Status
CROSS APPLY was the method I used for my solution, as it worked for me, and for my clients needs. And from what I've read, should provide the best overall performance should their database grow substantially.
CROSS APPLY