Solved

Access Database Query formula to help with how many times a part was shipped

Posted on 2015-02-09
1
72 Views
Last Modified: 2015-02-12
How do you setup a Access query to help take a list of part numbers with many duplicates and total how many shipments were made.  for example if the part number shows on the list 5 times that part has shipped 5 times, and the report would only show the part name once with 5 shipments.
0
Comment
Question by:cg1975
1 Comment
 
LVL 14

Accepted Solution

by:
ThomasMcA2 earned 500 total points
ID: 40599245
You need a combination of GROUP BY and COUNT, like this:

SELECT PartNumber, Count(1) as Orders
FROM Orders
WHERE ...
GROUP BY PartNumber

Open in new window


That will give a report like this:

PartNumber         Orders
ABC123               5
CDE234               2
FGH567              10

Open in new window

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now