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 as meet_time, s.store_id, group_concat(distinct concat(c.first_name, ' ', c.last_name)order by c.last_name, c.first_name separator ',') as customers from rental as r join customer as c on c.customer_id = r.customer_id join staff as s on s.staff_id = r.staff_id group by r.rental_date, s.store_id having count(rental_date) >1 order by meet_time, s.store_id

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

Copy Clear