Say, I've a table as given below:
id, c1, c2, c3, ..... c365, StdDeviation
1 , 3 , 7 , 1 , ..... c365, null
2 , 4 , 5 , 2 , ..... c365, null
3 , 5 , 3 , 4 , ..... c365, null
4 , 6 , 2 , 6 , ..... c365, null
5
.
.
millions
I would like to get the following using MySQL
id, c1, c2, c3, ..... c365, StdDeviation
1 , 3 , 7 , 1 , ..... c365, *standard deviation of this row*
2 , 4 , 5 , 2 , ..... c365, *standard deviation of this row*
3 , 5 , 3 , 4 , ..... c365, *standard deviation of this row*
4 , 6 , 2 , 6 , ..... c365, *standard deviation of this row*
5
.
.
millions
I can't use STDDEV()
as it do works vertically. Any solution?