This is the schema:
Books (bookid, title, author, year)
Customers (customerid, name, email)
Purchases (customerid, bookid, year)
Reviews (customerid, bookid, rating)
Pricing (bookid, format, price)
The Question is :
Find Names of the author of 2 or more books written in 1988 and recorded in the database in 1988
MySQL Query that I wrote is:
SELECT author
FROM Books
WHERE year = 1988
GROUP BY author
HAVING count(author)>= 2;
Does it Look Right?? I have no way of testing this because i dont have the data