Finding Duplicates in Table

  • Thread starter Thread starter Pete
  • Start date Start date
P

Pete

Hey
Got a situation where I need to provide a list of Software Descriptions
(swSoftwareDesc) for each asset (swAsset) where there is more than 1 Version
(swVersion) An e.g. would be Abode Reader V4 & Adobe Reader V5 found on
Freds PC. Any suggestions. I'm a bit of a newbe at this so easy is good :)

Pete
 
QBE window: Select the fields you're interested in, add one of the fields
you used again, select "group" (sigma sign) then change "group by" to
"count" then add >1 to the crireria which will count the number of records
where the comvination of fields you selected appears more than once.
 
SELECT swAsset, swSoftwareDesc, Count(swVersion) as VersionCount
FROM YourTable
GROUP BY swAsset, swSoftwareDesc
HAVING Count(swVersion) > 1

In Design view,
-- Set up a query to return the three fields
-- Select View: Totals from the menu
-- Change GROUP BY to Count under swVersion
-- Enter >1 in the criteria under swVersion


--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top