I have a table named POIN
and has a column which have comma separated values. I want to calculate each values on the comma separated. It's looks duplicate
question because it has answered here. But I want to achieved this using single query instead of create a mysql function.
This is my table looks like :
id poin
------------------
1 1,5,9,3,5
2 2,4,8,5
3 4,7,9,1,5,7
Desired result :
id max min sum avg
--------------------------------------
1 1 9 23 4,6
2 8 2 19 4,75
3 9 1 33 5,5
Actually, I searched this in Google and this forum and didn't get a correct answer yet. I can't show what I have tried so far, because I have no clue where to start.