I have the folowing SQL query:
SELECT * from sales WHERE cdate = (SELECT CONVERT(char(11), GETDATE(),20))
With this result:
ID NO DATE AMOUNT 9 103100 2012-01-31 00:00:00.000 44.29 10 110150 2012-01-31 00:00:00.000 2360.93 11 114000 2012-01-31 00:00:00.000 63.60 12 217155 2012-01-31 00:00:00.000 717.27
How can I add the values in the last column (amount)?
Use query:
and read in c#: