Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / October 2007

Tip: Looking for answers? Try searching our database.

Filtering out duplicate data point?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hmanisen - 31 Oct 2007 18:03 GMT
Hi:

I have not worked with MS Access in a while (5 yrs) and need help to filter
150,000 data points.  I am trying to determine unique entries base on several
key criterias.  I did import the data from our database with ease.  Any help
would be great.

Thanks,

Hank
Michel Walsh - 31 Oct 2007 18:44 GMT
Use a GROUP BY query. List, in the group, the fields that, together, define
'being unique'.  In the select clause, aggregate other fields that 'goes'
with the fields in the group, without defining what is to be consider in
being unique, with LAST  (or with FIRST):

f1        f2        f3                'fields
10    QW       Joe Smith
10    QW        Smith, Joe
11    QW        Mary Ann        ' data

SELECT f1, f2, LAST(f3)
FROM mytable
GROUP BY f1, f2

will return one of the first two record, plus the third record.  Here, f1
and f2 defines what is unique, and f3 is just an 'associated' information.

Hoping it may help,
Vanderghast, Access MVP

> Hi:
>
[quoted text clipped - 9 lines]
>
> Hank
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.