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
;
show status like 'Last_query_cost';