I have a table with the following fields:
- Action => Click/Open
- DateTime => Date and time action
occured
example:
Action | DateTime
- click | 3/12/2010 3:00AM
- click | 3/12/2010 3:12AM
- open | 3/12/2010 3:34AM
- click | 3/12/2010 4:12AM
- click | 3/13/2010 1:12PM
etc..
I need to group these by hour so that I have a number of clicks and opens hourly.
how would i do it?
thanks
I solved it like so:
Please let me know if you guys think this is incorrect..but from the looks of it..it gets the right data.
Model: