I have an Sql Server Table.. it\'s something like this:
Id ...... Column1 ...... Column2 ```````````````````````````````` 1 ........ 1 ............. 34 2 ..
Is this what you want?
select column1, avg(column2) from table group by column1
simple
select AVG(Column2) from table group by Column1
doesn't work?
This following Query will help for Calculate the average value of a ROW:
select Avg(A.Tamil + A.English + A.Maths + A.Science + A.Social_Science)/5 As
Average
from MarkTable A, MarkTable B, MarkTable C
where A.RollNo='14UCA002'
This might helpful...
SELECT column1, AVG(column2)
FROM "Insert table name"
GROUP BY column1
Execute the following SQL from average :
select column1,avg(column2) from tablename group by column1;
SELECT Column1, AVG(Column2) FROM test GROUP BY Column1;