icuucme Posted April 28, 2008 Share Posted April 28, 2008 Date amount 02/21/08 600 02/21/08 100 02/22/08 300 02/23/08 500 02/23/08 700 02/25/08 200 Let's say i want to do a report that totals the the amount per day Date amount 02/21/08 700 02/22/08 300 02/23/08 1200 02/25/08 200 Is there anyway to do a GROUP BY date? Link to comment https://forums.phpfreaks.com/topic/103328-solved-group-by-date/ Share on other sites More sharing options...
fenway Posted April 29, 2008 Share Posted April 29, 2008 Sure, use a SUM() and group by date... assuming, of course, that you've stored dates properly. Link to comment https://forums.phpfreaks.com/topic/103328-solved-group-by-date/#findComment-529488 Share on other sites More sharing options...
icuucme Posted April 29, 2008 Author Share Posted April 29, 2008 yea thanx, i donno y i didnt think of that :S Link to comment https://forums.phpfreaks.com/topic/103328-solved-group-by-date/#findComment-529547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.