PC Review


Reply
Thread Tools Rate Thread

How do you run a non duplicate query to find non duplicate record

 
 
=?Utf-8?B?dHJhaW5lcjA3?=
Guest
Posts: n/a
 
      16th Mar 2006
I know how to use the Duplicate Query Wizard to find duplicate records in a
table, but how would you run a query to find non duplicate records in a table?
 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      17th Mar 2006
On Thu, 16 Mar 2006 15:55:27 -0800, trainer07
<(E-Mail Removed)> wrote:

>I know how to use the Duplicate Query Wizard to find duplicate records in a
>table, but how would you run a query to find non duplicate records in a table?


Create a Query grouping on the fields which constitute "a duplicate" -
all the fields in the table if need be; select the Primary Key field
in addition to the group fields, and use Count as the aggregate
function.

Put a criterion of 1 on this count to select the records which have
one and only one record in the "group" - these are the nonduplicates.

John W. Vinson[MVP]
 
Reply With Quote
 
Pieter Wijnen
Guest
Posts: n/a
 
      17th Mar 2006
Simplest way is to use the dup wizard & Edit the SQL, Changing HAVING
COUNT(*) > 1 to HAVING Count(*)=1

Another way is to make a new Query with an outer join to the Dups query &
Exclude them from the result ...

HTH

Pieter

"trainer07" <(E-Mail Removed)> wrote in message
news:44266EED-2B4E-4449-AAEF-(E-Mail Removed)...
>I know how to use the Duplicate Query Wizard to find duplicate records in a
> table, but how would you run a query to find non duplicate records in a
> table?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Duplicate Record clk Microsoft Access Queries 1 27th Aug 2010 05:46 PM
Find duplicate, save in a list, delete duplicate using macro Erica Microsoft Excel Programming 1 27th Jan 2010 06:53 PM
find duplicate record in pop up form deb Microsoft Access 0 15th Sep 2009 09:21 PM
Query to find the most recent record for each duplicate record Microsoft News Server Microsoft Access Queries 3 14th Jun 2008 12:33 AM
BeforeUpdate - on Duplicate Cancel and Goto Duplicate Record lucy Microsoft Access Form Coding 0 28th Mar 2006 12:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:57 PM.