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, # DATE(return_date), COUNT(inventory_id) AS returned_at_2005_06_01 FROM inventory JOIN rental USING(inventory_id) WHERE return_date BETWEEN '2005-06-01 00:00:00' AND '2005-06-01 23:59:59' GROUP BY 1 ORDER BY 2 ; show status like 'Last_query_cost';

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

Copy Clear