Hi,
Is it possible to request for a total sum of a column (number type of course).
For example:
I have a table A with a column "Hrs" and a column "Date"
so that, I would like to SELECT the sum of all hours before certain date "myDate".
TableA
Hrs Date
4 11/2/2009
7 11/2/2009
5 11/3/2009
7 11/6/2009
7 11/8/2009
if myDate = "11/3/2009" then Result = 16 Hrs.
What would be the SELECT command to calculate the total of hours before myDate?
Thanks,
Enrique.
Is it possible to request for a total sum of a column (number type of course).
For example:
I have a table A with a column "Hrs" and a column "Date"
so that, I would like to SELECT the sum of all hours before certain date "myDate".
TableA
Hrs Date
4 11/2/2009
7 11/2/2009
5 11/3/2009
7 11/6/2009
7 11/8/2009
if myDate = "11/3/2009" then Result = 16 Hrs.
What would be the SELECT command to calculate the total of hours before myDate?
Thanks,
Enrique.