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
CREATE TEMPORARY TABLE temp_table_rating_1x1 (SELECT users.id, users.rating_1x1, DENSE_RANK() OVER (ORDER BY `rating_1x1` DESC) AS rank FROM `users`); SELECT * FROM temp_table_rating_1x1 WHERE id = 1; DROP TEMPORARY TABLE temp_table_rating_1x1;

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

Copy Clear