Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRXI - Group by time interval

Status
Not open for further replies.

mgason

Technical User
Feb 6, 2003
158
AU
Hi,
I have weighments that have a time stamp in the database.
The user selects a date range from which to retrieve a list of all weighments.
How can I group those weighments by a preset time interval.

For example if they are allowed to select a single 24 hour period. How could I group weighments in 1 hour intervals and give counts of batches for each hour.

I may need to do a similar things with day and week intervals in other reports. So any tips for that too would be great.

thanks
mark
 
Why not just insert a group on your datetime field on change of hour?

-LB
 
Yes,
I figured that out. I did not know change of hour was an option once you grouped by a date time.
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top