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
with p as (Select f.title, f.film_id, a.first_name, a.last_name, a.actor_id from film as f join film_actor as fa on f.film_id = fa.film_id join actor as a on fa.actor_id = a.actor_id order by f.title asc), k as (select title, film_id, first_name, last_name, actor_id, row_number() over (partition by title order by title) as a from p) select least(actor_id, a) from k

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

Copy Clear