By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| concat('["', replace(raw, ' ', '","'), '"]') |
|---|
| ["this","is","a","test"] |
| Value |
|---|
| this |
| is |
| a |
| test |
Records: 2 Duplicates: 0 Warnings: 0
| concat('["', replace(group_concat(raw SEPARATOR '","'), ' ', '","'), '"]') |
|---|
| ["this","is","a","test","this","is","also","a","test","and","you","can","test","it"] |
| Value | vol |
|---|---|
| test | 3 |
| this | 2 |
| is | 2 |
| a | 2 |
| also | 1 |
| and | 1 |
| you | 1 |
| can | 1 |
| it | 1 |