SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select store_id,count(inventory.inventory_id) as rented_at_2005_05_31 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 order by store_id

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear