Referring to my previous questions about the concat mysql group again, group and display the rest of the rows
I need to get the first and last day from this request
eg
row 3 from 8,9,10 to first collumn 8, last collumn 10 row 5 from 21,22,23,24,28,29,30 to first collumn 21, last collumn 30 row 6 from 17,21,22,23,24,25 to first collumn 17 last collumn 25 SUBSTR(GROUP_CONCAT(DAY),-1) as fl
BUT this gives me the last char, and there are several lines with 1 or 2 characters, for example
1,2,3,22 1,3,6,3
In the first example, this gives me 2, not 22: /
source share