Hi,
I have a form where a user can input two dates and I want to get a sum of the day's data for each of the days separately.
So far the closest I've come is:
// to display the total for one day
SELECT sum( hplmnmoc )
FROM `inRtccCallType`
WHERE host='wilsle03'
AND date='2007-05-25'
// to display the total for all days
SELECT sum( hplmnmoc )
FROM `inRtccCallType`
WHERE host='wilsle03'
AND date BETWEEN '2007-05-24' AND '2007-05-31'
With what I have so far I can either display one day's total or else a total for the whole period. Can anyone tell me how to get the totals for each day individually without having to perform multiple queries.
P.S. I have also tried ORDER BY and SORT BY, both of which returned errors.
Thanx in advance!!!