I have a database and with multiple records of the same date and related amount but I only want a single record and that is date related total amount
No. Date name amt
---- ----------------------- ----- ----
4 2012-07-27 10:47:50.000 zerox 15
5 2012-07-27 12:22:16.000 bag 30
6 2012-07-28 10:47:50.000 zerox 25
7 2012-07-28 12:22:16.000 bag 30
I want this:
-----------------
date totamt
---------- -------
2012-07-27 45
2012-07-28 55
Assuming your ‘date’ column doesn’t get in the way, the following should work.