SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SET SESSION group_concat_max_len = 1000000; SELECT rental.rental_date AS "meet_time", cu.store_id AS "store_id", GROUP_CONCAT(cu.last_name, " ", cu.first_name ORDER BY cu.last_name SEPARATOR ', ') AS "customers" FROM customer cu INNER JOIN rental ON cu.customer_id = rental.customer_id INNER JOIN staff ON rental.staff_id = staff.staff_id GROUP BY rental.rental_date, cu.store_id ORDER BY meet_time ASC, store_id ASC;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear