Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
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 AI support!

Copy Clear