Re: finding unique values
- From: Phil Smith <phil@xxxxxxxxxxx>
- Date: Wed, 09 Sep 2009 13:48:39 -0700
Build a totals query with just the Part# field in it twice. Sort and group by on the first, for the second, use count.
This is a list of all your part#s, and the number of times they are used.
Then build another query that links that query back to your table, giving you the model numbers where the CountOfPart#=1.
buscher75 wrote:
Hello, I have a table that holds records of part numbers and also where the part is used. So, part A123 could be listed in multiple rows if it is used on multiple models. I want to run a query that will show any part that it unique to a specific model..
The query should produce results for the specific model only and should exclude any part that is used on another model even if is also used on the specific model.
Hypothetically, I only want to see the second record, Unit A with part X456 because part Z123 is used elsewhere.
Model Part#
Unit A Z123
Unit A X456
Unit B Z123
Unit C Z123
I think I am close; however, it’s probably more like guessing than knowing. Does anyone have a solution? Thanks in advance!
- Follow-Ups:
- Re: finding unique values
- From: buscher75
- Re: finding unique values
- References:
- finding unique values
- From: buscher75
- finding unique values
- Prev by Date: Shifting column headings - not data...
- Next by Date: RE: How to Exclude result from one query from another
- Previous by thread: finding unique values
- Next by thread: Re: finding unique values
- Index(es):
Relevant Pages
|