Results 1 to 3 of 3
  1. #1
    guesswhat91 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    1

    Ranking Duplicates

    I am trying to rank duplicate Please see table below. Any help will be much appreciated. I am using Access 2007 and also have basic knowledge of writing SQL queries. Thanks in advance.

    UID Dup Ranking
    2C1017383792014 1
    2C1017383792014 2
    2C1017833792014 1
    2C1017833792014 2
    2C1029463792014 1
    2C1029463792014 2
    2C1029463792014 3


  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    What exactly makes a duplicate? What are you ranking -- what criteria are involved? Please provide a description in simple English of what the subject matter is and what you are trying to do. Seems you have multiple pieces making up a UID--can you tell us more?

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Is there a unique ID field? An autonumber field will serve.

    Review http://allenbrowne.com/ranking.html

    Also try:

    SELECT UID, DCount("*","table","UID='" & [UID] & "' AND ID<" & [ID])+1 AS GroupSeq FROM table;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Help with Ranking
    By Mbithy in forum Queries
    Replies: 3
    Last Post: 08-05-2012, 10:21 PM
  2. Ranking
    By mrbabji in forum Queries
    Replies: 1
    Last Post: 04-19-2012, 10:33 AM
  3. Ranking (Look for previous ranking)
    By leobear in forum Queries
    Replies: 3
    Last Post: 01-10-2012, 05:58 PM
  4. Ranking and assigning a Value
    By loopyl00 in forum Access
    Replies: 0
    Last Post: 01-11-2011, 12:14 PM
  5. Help to build a ranking
    By chorbi26 in forum Access
    Replies: 0
    Last Post: 12-20-2010, 12:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums