Displaying 1 result from an estimated 1 matches for "orders_group".
Did you mean:
order_group
2010 Jan 27
4
Better way to count Active Record Data?
I am trying to get hourly counts of orders between different price
ranges from my database. I''m thinking there has got to be a better way
than looping through each record and checking if the created_at time
fits between hour 1, 2, 3, 4, etc of the day and then returning the
count.
Currently I am displaying just a total of the days sales that are
between different dollar amounts this