I have a table1 with info about books in the library (ID, name, publisher, year_of_public, status)
I need get all PUBLISHERS and last YEAR OF PUBLISH for each of the publisher. I've done something like this:
SELECT publisher, year_of_public FROM table
SELECT MAX (year_of_public) FROM publisher
but I'm sure that's not right. How to make it better?
GROUP BY.