Hi,
I need a sql to represent the following data to group the DTStamp column to a single hour with the relevant data
DTStamp PO ItemNo Qty
11/3/2014 6:24 P019646 55004-RT-L 1
11/3/2014 6:24 P019646 55004-RT-L 1
11/3/2014 6:25 P019646 55004-RT-L 1
11/3/2014 6:25 P019646 55004-RT-L 1
11/3/2014 7:05 P019645 55004-LFT-L 1
11/3/2014 7:07 P019435 8744-FG-XSS 1
11/3/2014 7:07 P019435 8744-FG-XSS 1
11/3/2014 7:07 P019435 8744-FG-XSS 1
11/3/2014 7:07 P019435 8744-FG-XSS 1
11/3/2014 8:22 P019657 8745-DS-M 1
11/3/2014 8:22 P019646 55004-RT-L 1
11/3/2014 8:22 P019657 8745-DS-M 1
The output should be -
DTStamp PO ItemNo Qty
11/3/2014 6:00 P019646 55004-RT-L 4
11/3/2014 7:00 P019645 55004-LFT-L 1
11/3/2014 7:00 P019435 8744-FG-XSS 4
11/3/2014 8:00 P019657 8745-DS-M 2
11/3/2014 8:00 P019646 55004-RT-L 1
Thanks,
Mohit.