Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7833595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:47:17+00:00 2026-06-02T12:47:17+00:00

I have over 1,000 entries with duplicate values in an Access database. I want

  • 0

I have over 1,000 entries with duplicate values in an Access database. I want to create a column called Duplicate and set it to true if a record is NOT THE FIRST ONE with a particular value. This means, if the record is the first one with the value “Red Chair”, the Duplicate field is set to false, but all subsequent records with value “Red Chair” will have the Duplicate field set to true.

How do I perform this query in Access?

This database will be upsized to an SQL Server database, so an option for me is to ‘ignore’ the duplicate records while retrieving the records in my SQL query. If this option is viable, I’d like to know how to do this in SQL as alternative. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T12:47:18+00:00Added an answer on June 2, 2026 at 12:47 pm

    You will have to use subqueries. Try this

    UPDATE Tabelle1 SET Tabelle1.b = 'Duplicate'
    WHERE 
    ((Tabelle1.[ID] In 
     (SELECT Tabelle1.[ID] FROM Tabelle1 WHERE 
      ((Tabelle1.[a] In 
         (SELECT [a] FROM [Tabelle1] As Tmp GROUP BY [a] HAVING Count(*)>1 )
       )
      AND 
      (Tabelle1.[ID] Not In 
        (SELECT min([id]) FROM [Tabelle1] as grpid GROUP BY [a] HAVING Count(*)>1)
      ));
    )));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Redis set called userids with over 100,000 entries in it. When
im planning to create a movie file that might have over 16,000 frames?i know
I have a data set with over 50,000 geocoded points (lat-long). Each point has
I have the video gallery in my database, which has over 200 000 videos.
We have over 10,000 registered users on our site and want to associate each
I have a massive python dictionary with over 90,000 entries. For reasons I won't
I have almost 800 MB and over 31,000 files in hundreds of subfolders at
If I'm building an application that will have over 30 models, and I want
i have taken over a database that stores fitness information and we were having
I have over 11,000 pages in a site and need to change the tag

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.