Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 query each hour sales on one item

Author  Topic 

usafelix
Posting Yak Master

165 Posts

Posted - 2014-08-21 : 11:07:03
I'm looking for sql to report the each hour sale by daily on special sku and rollup the total qty .

sku =' Skin Care Mask '
8am
> > 9am
> > 10am
> > 11am
> > 12am
> > 1pm
> > 2pm
> > 3pm
> > 4pm
> > 5pm
> > 6pm
> > 7pm
> > 8pm
> > 9pm
   

- Advertisement -