开发者

finding the sum of a column [closed]

It's difficult to tell what is being asked here. This question i开发者_运维技巧s ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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) 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜