sql return only max date for each id
问题 I have a database with one table that looks like this Books(id, title, author_id, date) I am using type DATE for the date field. What the query is looking to do is return only the most recent book from each author, so even for the books that have the same author_id, only return the book that has the most recent date field for that author. So for all books find the most recent book from each author, returning title, author_id, and date. I believe I will need to use the MAX function with a