Connecting Tech Pros Worldwide Help | Site Map

can I reduce the number of queries?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2006, 07:05 PM
jonm4102
Guest
 
Posts: n/a
Default can I reduce the number of queries?

Thanks for your previous post. I've run into another hurdle, and would
greatly appreciate any help you may be able to offer. I have revenue
data sorted by month and years for a number of distinctly labeled
stores (imagine a Center ID). I would like to find the percentage of
"gainers" (stores whose monthly revenues exceed the previous month's
revenues) out of the all the stores. I know how to determine this by
using an individual queries to sort out each store's revenue by year
and month, and then use another query to classify gainers v. decliners,

and then (Fnally!) calculate the percentages. Is there an easier way to

do this than to run around 50 queries (one for each month for 4 years)?

Thanks.

Jonathan


  #2  
Old July 17th, 2006, 07:15 PM
paii, Ron
Guest
 
Posts: n/a
Default Re: can I reduce the number of queries?

Summation query grouped on Store, Month/Year in the 1st 2 queries, should
reduce the count to 3.

"jonm4102" <sutasa@gmail.comwrote in message
news:1153163405.325682.153580@i42g2000cwa.googlegr oups.com...
Quote:
Thanks for your previous post. I've run into another hurdle, and would
greatly appreciate any help you may be able to offer. I have revenue
data sorted by month and years for a number of distinctly labeled
stores (imagine a Center ID). I would like to find the percentage of
"gainers" (stores whose monthly revenues exceed the previous month's
revenues) out of the all the stores. I know how to determine this by
using an individual queries to sort out each store's revenue by year
and month, and then use another query to classify gainers v. decliners,
>
and then (Fnally!) calculate the percentages. Is there an easier way to
>
do this than to run around 50 queries (one for each month for 4 years)?
>
Thanks.
>
Jonathan
>

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.