megabyte214
Programmer
Below is a query and it is not displaying the count for authors who do not have any books. I understand why, but I do not know how to fix it. I need it to return 0 for authors with no books.
Thanks in advance.
Code:
select lastname, count(ba.isbn) from author as a, bookauthor as ba, book as b where b.isbn = ba.isbn and ba.authorid = a.authorid group by a.lastname asc;
Thanks in advance.