Results 1 to 3 of 3

Thread: Duplicate

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    Hi guys, I had this database which consists of duplicate invoices no. My question is how do i view those duplicate invoices no. only??
    I'm using access. What is the SQL command to use.

    Thks.


  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Leavenworth KS USA
    Posts
    482

    Post

    Assuming a table named YourInvoiceTable with an invoice number field named inv_num, the SQL query in Access/DAO could look something like this:

    SELECT DISTINCTROW
    First(inv_num)
    , Count(inv_num)
    FROM YourInvoiceTable
    GROUP BY inv_num
    HAVING Count(inv_num)>1;

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    Thks, it works.

Posting Permissions

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



Click Here to Expand Forum to Full Width