I am trying to get this table to display book num, book title, and the number of times each book was checked out (even if it was never checked out.)
The current output I get is correct, but I want to sort it by book num and "Times Checked Out".
SELECT book.book_num
,book_title
,Count(checkout.book_num) AS "Times Checked Out"
FROM checkout right join book ON checkout.book_num = book.book_num
GROUP BY book.book_num, book_title;