SET SESSION group_concat_max_len = 1000000;;
select rental_date as meet_time, s.store_id,
group_concat( concat (c.first_name,' ', c.last_name) order by c.last_name ) as customers
from rental as r,staff as s,store,customer as c
where s.staff_id=r.staff_id
and
store.store_id=s.store_id
and
c.customer_id=r.customer_id
group by rental_date,s.store_id
having count(r.customer_id)>1
order by rental_date,s.store_id
;
show status like 'Last_query_cost';