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 rental_id, store_id, rental_date, return_date, rental_duration, date(return_date) - date(rental_date) as dif SELECT DATEDIFF('date(return_date)', 'date(rental_date)'); FROM rental r JOIN inventory i ON r.inventory_id = i.inventory_id JOIN film f ON i.film_id = f.film_id

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

Copy Clear