Hi Tom:
Thanks for your answer. Yeah, you are perfectly right, four observations for each variable:
data have:
id
South
North
east
west
1
2
4
12
9
2
3
.
11
10
3
2
4
12
10
4
6
4
13
12
using sql i would like to obtain:
id
South
North
mean_south_north
SD_south_north
east
west
mean_east_west
SD_east_west
1
2
4
3,57142857142857
1,39727626201154
12
9
11,125
1,35620268186054
2
3
.
3,57142857142857
1,39727626201154
11
10
11,125
1,35620268186054
3
2
4
3,57142857142857
1,39727626201154
12
10
11,125
1,35620268186054
4
6
4
3,57142857142857
1,39727626201154
13
12
11,125
1,35620268186054
where mean_south_north contains the arithmetic average, known as mean, from every observation in the columns South and North, in BLUE BOLD, as follows: 2, 3, 2, 6, 4, 4, 4; using the same thinking, SD_south_north contains the standard deviation from BLUE BOLD data, from the 4 observations and variables South and North.
... View more