The Question : 1307 people think this question is useful Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted. This question already has answers here: Retrieving the last record in each group –