I would like to list the books in order of more borrowed, but there is no book that was borrowed so it shows none. I would like it to show in order but even if the book has not been borrowed once it has to be listed.
SELECT Livros.Nome, COUNT(Emprestimo.Livro_IDLivro) FROM Livros
INNER JOIN Emprestimo ON Livros.IDLivro = Emprestimo.Livro_IDLivro
ORDER BY COUNT(Emprestimo.Livro_IDLivro) ASC;