finding the sum of a column [closed]
I have three columns in a table first one for start time, second one for end time and the third one for the duration.
Now I want to find out the sum of the duration column, any ideas how can do it?
however I am using .net as programming language
select sum(duration) from tablename
I don't know why three columns should be different but if I got your questions you can use SUM oprator:
SELECT SUM(Column3) FROM TABLE1
Me.txtTotalDuration.Text = table.Compute("sum(duration)", String.Empty)
精彩评论