I got an error
Column 'books.Name' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
Code:
select Name, MIN(Date) as Date, Pub
from books
where Date is not null
group by Pub
I would like to display Name of the old book and its publisher name.