Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Apr 2005
    Location
    Plovdiv
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    find duplicates (Access 2000)

    Will somebody help me ? I cannot use the in built query wizard to find duplicates because it is not installed on my
    computer.
    I need to build a special query that finds whether there are duplicates in the
    orders.invoiceid from the following query:

    SELECT orders.orderid, orders.invoiceid FROM orders;

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: find duplicates (Access 2000)

    Create a query with the following SQL:

    SELECT Orders.OrderID, Orders.InvoiceID, Count(Orders.InvoiceID) AS NumberOfDuplicates
    FROM Orders
    GROUP BY Orders.OrderID, Orders.InvoiceID
    HAVING Count(Orders.InvoiceID)>1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •