📅  最后修改于: 2022-03-11 15:05:28.535000             🧑  作者: Mango
SELECT books.*, count(orders.book_id) as number_of_orders
from books
left join orders
on (books.book_id = orders.book_id)
group by
books.book_id