473,396 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ACCESS Query Calcs: Number

Former Access user trying to recall how I would do this in a query for a nonprofit furniture bank: I have related tables (extracted from super-old PFS files) with records of individual donor pickups that include, among others, the following fields: DateOfPickUp, DOW (day of week, e.g., "Monday", "Wednesday", etc.), Area (of Pickup, e.g., "A", "B", "C", & "D"). I'm trying to calculate, for example, on how many Mondays (or Tuesdays, Wednesdays, etc.) did we schedule pickups in Area
"A" (or "B"...). From that, I can then determine (using a count of pickups for each day of the week divided by the aggregate number of times we scheduled pickups for any one day of the week) which days are most cost-effective to operate.
Oct 10 '06 #1
2 1886
sanniep
48
Former Access user trying to recall how I would do this in a query for a nonprofit furniture bank: I have related tables (extracted from super-old PFS files) with records of individual donor pickups that include, among others, the following fields: DateOfPickUp, DOW (day of week, e.g., "Monday", "Wednesday", etc.), Area (of Pickup, e.g., "A", "B", "C", & "D"). I'm trying to calculate, for example, on how many Mondays (or Tuesdays, Wednesdays, etc.) did we schedule pickups in Area
"A" (or "B"...). From that, I can then determine (using a count of pickups for each day of the week divided by the aggregate number of times we scheduled pickups for any one day of the week) which days are most cost-effective to operate.
You could add a autonumber field to the table above then create a query with the DOP, DOW, Area and Autonumber field. Use the Group By Function and use Count on the autonumber field. Then you will have your number of pickups per day per Area.

You could aslo, if desired, make this query a crosstab query with the DOW and DOP as rowheader, the Area as Columnheader and the number of pickups (count of Autonumber) as value. This will result in the number of pickups per day with the Area as columnheader.

Sander
Oct 11 '06 #2
You could add a autonumber field to the table above then create a query with the DOP, DOW, Area and Autonumber field. Use the Group By Function and use Count on the autonumber field. Then you will have your number of pickups per day per Area.

You could aslo, if desired, make this query a crosstab query with the DOW and DOP as rowheader, the Area as Columnheader and the number of pickups (count of Autonumber) as value. This will result in the number of pickups per day with the Area as columnheader.

Sander
Sander, thanks. That answered another problem I was experiencing, but I think that I didn't write up the problem correctly. What I'm trying to do is calculate how many, for example, Mondays did I shedule pickups in Area "A", not how many pickups were performed. Inotherwords, during a 1 year period, how many Mondays were spent in Areas "A", or "B", etc. regardless of the number of pickups that were performed. Again, thanks, Phil.
Oct 11 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
5
by: Bec | last post by:
I'm in desperate need of your help.. I need to build an access database and have NO idea how to do this.. Not even where to start.. It IS for school, and am not asking anyone to do my...
1
by: Brad | last post by:
Thanks for taking the time to read my question. I have a table of data that has Date, Data and Category. I need to show, in a report, each Categories Data by Date. The Date has to be it's own...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.