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 i.store_id, COUNT(r.rental_id) AS returned_at_2005_06_01 FROM rental r JOIN inventory i ON r.inventory_id = i.inventory_id WHERE r.return_date BETWEEN '2005-06-01 00:00:00' AND '2005-06-01 23:59:59' GROUP BY i.store_id ORDER BY i.store_id; ; show status like 'Last_query_cost';

Stuck with a problem? Got Error? Ask AI support!

Copy Clear