I am running a query where I used GROUP_CONCAT() and now I want to know the length of this array. I used LENGTH(), however, this shows the number of characters in the row. Should I even use GROUP_CONCAT() in the first place?
The results I am expecting:
| Id | GROUP_CONACT() | LENGTH |
|---|---|---|
| 1 | A, B | 2 |
| 2 | C, D | 2 |
| 3 | E, F, G | 3 |
| 4 | A, D | 2 |
| 5 | A, B, D, E, G | 5 |