How can i obtain overall class average by class using SQL Server?
I would want the overall by average of scores in a particular class say p1 or p2 corresponding
| NAME |
CLASS |
MTC |
ENG |
SST |
SCIENCE |
TOTAL |
| JOHN |
P1 |
90 |
60 |
88 |
90 |
328 |
| MARK |
P1 |
50 |
60 |
55 |
89 |
254 |
| WILLIAM |
P1 |
66 |
45 |
67 |
88 |
266 |
| BECKY |
P2 |
45 |
18 |
90 |
79 |
232 |
| ROSE |
P2 |
50 |
38 |
67 |
89 |
244 |
| DAVID |
P2 |
33 |
67 |
77 |
56 |
233 |
| ALEX |
P2 |
23 |
29 |
45 |
67 |
164 |
thanks in advance