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 MONTH(FROM_UNIXTIME(944892273)); SELECT DISTINCT T.type, AVG(R.rating) FROM types AS T INNER JOIN ratings AS R ON T.movieId = R.movieId AND MONTH(FROM_UNIXTIME(R.timestamp)) = 12 GROUP BY T.type HAVING COUNT(R.rating) >=10 ORDER BY AVG(R.rating) DESC;

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

Copy Clear