SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select store_id,count(inventory.inventory_id) from inventory left join rental on inventory.inventory_id=rental.inventory_id where rental_date <='2005-05-31 23:59:59' and return_date>'2005-05-31 23:59:59' group by store_id

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear