Hi there,
I'm currently creating a stored procedure. I would like to group my data by hour. Not sure which command to use.
My database source looks like the example below:
10/01/2005 01:25 Tom 10
10/01/2005 01:25 Tom 15
10/01/2005 01:30 John 25
10/01/2005 02:30 Tom 15
10/01/2005 02:31 John 25
10/01/2005 02:40 John 25
The output of the stored procedure should like something like this:
10/01/2005 01:00 Tom 25
10/01/2005 01:00 John 25
10/01/2005 02:00 Tom 15
10/01/2005 02:00 John 50
Appreciate any help reg. this matter. Thanks in advance.
Regards,
Chris
I'm currently creating a stored procedure. I would like to group my data by hour. Not sure which command to use.
My database source looks like the example below:
10/01/2005 01:25 Tom 10
10/01/2005 01:25 Tom 15
10/01/2005 01:30 John 25
10/01/2005 02:30 Tom 15
10/01/2005 02:31 John 25
10/01/2005 02:40 John 25
The output of the stored procedure should like something like this:
10/01/2005 01:00 Tom 25
10/01/2005 01:00 John 25
10/01/2005 02:00 Tom 15
10/01/2005 02:00 John 50
Appreciate any help reg. this matter. Thanks in advance.
Regards,
Chris