Skip to content

How to calculate average

shabeer shaik

Asked Dec 19, 2012, 2:48 PM EST1 answer
Share
LinkedInX
hallo Valpes

i have a datagrid on visual studio2008. I have aprocedure to call it to dgv1.on selection of combobox1 the selected item is then displayed on dgv1.
I need to work out the average of three columns and name it respectively.and display in dgv2 or in same dgv1 with new colums.

disttimespdname
120059.6316.26shanny
140065.2315.89shanny
160080.1014.23shanny
 i need average for 1.2.3 please

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Vithal Wadje
    0
    write sql query as select AVG (column1) as average,AVG( column1 ) as avge, AVG( columnN ) as avge from table name
    0