I have following tables and I want to use group_concat function in MySQL 5.7 but its showing error. Can anyone help me?
**ride** **route**
r_id Date1 region route_name ri_id
1 2019-09-11 DXB dx1 1
2 2019-09-11 AUH au1 2
3 2019-09-11 DXB dx2 3
4 2019-09-11 NE ne1 4
I am using the following query to group_concat but, it shows error like this
mysql Error Code: 3 error writing file 'C:\Winows\temp\Myffd3.tmp' (Errcode: 28).
SELECT region,GROUP_CONCAT(route_name) AS route_name FROM route LEFT JOIN ride ON ri_id = r_id WHERE date1 = '2019-09-11' GROUP BY region
I want output like this
region route_name
DXB dx1,dx2
AUH au1
NE ne1