Home Page link  

SQL for Hourly - Daily Sales

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
SQL for Hourly - Daily Sales Jerry 06-23-2009
Posted by Jerry on June 23, 2009, 12:52 pm
Please log in for more thread options
Hi everyone -

I'm looking for sql to report the average sale per the day of the
week. So the total Monday's average sales per hour, the total
Tuesday's sales per hour for all the days of the week. Average sale
with a rollup on day with sales per hour. At first I'd like to pull
data from 1-1-09 through 6-24-09.

Your help would be appreciated.

Mon Tues Wed Thurs Fri Sat Sun
8am
9am
10am
11am
12am
1pm
2pm
3pm
4pm
5pm
6pm
7pm
8pm
9pm

Posted by Robert on June 24, 2009, 1:02 pm
Please log in for more thread options
Hi Jerry,

You can use this report off of CustomerSource http://tinyurl.com/nqu2e7
, add the code below and an average column for sales and you will have
what you want.

Begin Column
FieldName =3D "DayofWeek"
DrillDownFieldName =3D ""
DrillDownReportName =3D ""
Title =3D "Day of Week"
VBDataType =3D vbString
Formula =3D "CASE DATEPART(weekday,[Transaction].Time) WHEN 1 THEN '1-
Sunday' WHEN 2 THEN '2-Monday' WHEN 3 THEN '3-Tuesday' WHEN 4 THEN '4-
Wednesday' WHEN 5 THEN '5-Thursday' WHEN 6 THEN '6-Friday' WHEN 7 THEN
'7-Saturday' ELSE 'Unknown' END"
ColHidden =3D False
ColNotDisplayable =3D False
FilterDisabled =3D False
ColWidth =3D 2100
GroupMethod =3D groupmethodNone
ColFormat =3D ""
End Column

Make sure the Formula is all on one line with no carriage return
breaking up the code.

Robert Armstrong
www.retail-pos.com

> Hi everyone -
>
> I'm looking for sql to report the average sale per the day of the
> week. =A0So the total Monday's average sales per hour, the total
> Tuesday's sales per hour for all the days of the week. =A0Average sale
> with a rollup on day with sales per hour. =A0At first I'd like to pull
> data from 1-1-09 through 6-24-09.
>
> Your help would be appreciated.
>
> =A0 =A0 Mon Tues Wed Thurs Fri Sat Sun
> 8am
> 9am
> 10am
> 11am
> 12am
> 1pm
> 2pm
> 3pm
> 4pm
> 5pm
> 6pm
> 7pm
> 8pm
> 9pm


Posted by Jerry on June 25, 2009, 12:58 pm
Please log in for more thread options
> Hi Jerry,
>
> You can use this report off of CustomerSourcehttp://tinyurl.com/nqu2e7
> , add the code below and an average column for sales and you will have
> what you want.
>
> Begin Column
> =A0 =A0FieldName =3D "DayofWeek"
> =A0 =A0DrillDownFieldName =3D ""
> =A0 =A0DrillDownReportName =3D ""
> =A0 =A0Title =3D "Day of Week"
> =A0 =A0VBDataType =3D vbString
> =A0 =A0Formula =3D "CASE DATEPART(weekday,[Transaction].Time) WHEN 1 THEN=
'1-
> Sunday' WHEN 2 THEN '2-Monday' WHEN 3 THEN '3-Tuesday' WHEN 4 THEN '4-
> Wednesday' WHEN 5 THEN '5-Thursday' WHEN 6 THEN '6-Friday' WHEN 7 THEN
> '7-Saturday' ELSE 'Unknown' END"
> =A0 =A0ColHidden =3D False
> =A0 =A0ColNotDisplayable =3D False
> =A0 =A0FilterDisabled =3D False
> =A0 =A0ColWidth =3D 2100
> =A0 =A0GroupMethod =3D groupmethodNone
> =A0 =A0ColFormat =3D ""
> End Column
>
> Make sure the Formula is all on one line with no carriage return
> breaking up the code.
>
> Robert Armstrongwww.retail-pos.com
>
>
>
>
> > Hi everyone -
>
> > I'm looking for sql to report the average sale per the day of the
> > week. =A0So the total Monday's average sales per hour, the total
> > Tuesday's sales per hour for all the days of the week. =A0Average sale
> > with a rollup on day with sales per hour. =A0At first I'd like to pull
> > data from 1-1-09 through 6-24-09.
>
> > Your help would be appreciated.
>
> > =A0 =A0 Mon Tues Wed Thurs Fri Sat Sun
> > 8am
> > 9am
> > 10am
> > 11am
> > 12am
> > 1pm
> > 2pm
> > 3pm
> > 4pm
> > 5pm
> > 6pm
> > 7pm
> > 8pm
> > 9pm- Hide quoted text -
>
> - Show quoted text -

I'm familiar with sql and executing sql statements. This statement
and executing it are unfamiliar to me. If you can explain how to
execute it I'll give it a try.

Similar ThreadsPosted
Hourly Sales December 29, 2008, 10:09 am
Hourly sales report November 15, 2005, 7:16 am
HELP! Need to export hourly sales data on POS (NOT RMS) November 14, 2007, 4:25 pm
Hourly Sales Totals including Taxes February 14, 2007, 8:44 am
POS (not RMS) Itemized Report on Hourly Sales by Category December 17, 2007, 7:03 pm
Z Report Customer Count vs Hourly Sales January 29, 2010, 10:07 am
Daily Sales November 13, 2005, 11:44 am
Daily Sales by Register April 23, 2006, 12:45 pm
Daily Sales Report June 11, 2006, 10:06 am
SO Daily Sales Report March 3, 2009, 11:05 am

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap