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
SET SESSION group_concat_max_len = 1000000; select r.rental_date meet_time , s.store_id , group_concat(distinct concat(c.first_name, ' ', c.last_name) order by c.last_name separator ',') customers from rental r inner join customer c using (customer_id) inner join staff s using (staff_id) group by 1, 2 --having count(distinct r.customer_id) > 1 order by 1, 2

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

Copy Clear