Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Duplicate Entries

    Does anyone have any examples on how to remove dupliate entries from a
    table?

    I have 1 temp table that holds about 300,000 records - about 110,000 of
    those are [at minimum] duplicates.

    The table layout is somethign like:

    pk email id
    1 [email]me@here.net[/email] 0001
    2 [email]you@there.com[/email] 0002
    3 [email]me@here.net[/email] 0003
    3 [email]me@here.net[/email] 0004
    3 [email]me_1@here.ca[/email] 0005
    just1coder@yahoo.ca Guest

  2. Similar Questions and Discussions

    1. Deleting duplicate entries from database table
      NOTE: The same message is also posted at comp.lang.php, mailing.database.mysql, mysql on July 7. The scenario is as: 1. A table is created 2....
    2. Duplicate Database Entries
      I have an MS Access (2002) database with one table field that is a Primary Key. I have an asp page with a Record Insertion Form to put data into...
    3. DataView.Sort causing duplicate entries in a DataGrid control
      I have a custom object that exposes data through one of its properties that is of type DataTable. I then use the resultant DataTable from the...
    4. Remove duplicate entries
      I have IIS logs that are parsed into a SQL database, and then the database is called by an asp page. My only issue is having duplicate entries in...
    5. SYSLOG generating duplicate entries
      I'm getting duplicate entries from syslog. Well, they're not quite duplicates. One has the "short" hostname and the other has the FQDN. For...
  3. #2

    Default Re: Duplicate Entries

    Doesn't look like your primary key column (with a terrible name, pk) is not
    really a primary key after all.

    [url]http://www.aspfaq.com/2431[/url]
    [url]http://www.aspfaq.com/2509[/url]
    [url]http://www.aspfaq.com/2504[/url]

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)




    <just1coder@yahoo.ca> wrote in message
    news:u7H4oWKdEHA.1604@TK2MSFTNGP11.phx.gbl...
    > Does anyone have any examples on how to remove dupliate entries from a
    > table?
    >
    > I have 1 temp table that holds about 300,000 records - about 110,000 of
    > those are [at minimum] duplicates.
    >
    > The table layout is somethign like:
    >
    > pk email id
    > 1 [email]me@here.net[/email] 0001
    > 2 [email]you@there.com[/email] 0002
    > 3 [email]me@here.net[/email] 0003
    > 3 [email]me@here.net[/email] 0004
    > 3 [email]me_1@here.ca[/email] 0005

    Aaron [SQL Server MVP] Guest

  4. #3

    Default Re: Duplicate Entries

    On Wed, 28 Jul 2004 09:21:35 -0400, [email]just1coder@yahoo.ca[/email] wrote:
    >Does anyone have any examples on how to remove dupliate entries from a
    >table?
    >
    >I have 1 temp table that holds about 300,000 records - about 110,000 of
    >those are [at minimum] duplicates.
    >
    >The table layout is somethign like:
    >
    >pk email id
    >1 [email]me@here.net[/email] 0001
    >2 [email]you@there.com[/email] 0002
    >3 [email]me@here.net[/email] 0003
    >3 [email]me@here.net[/email] 0004
    >3 [email]me_1@here.ca[/email] 0005
    Is PK supposed to be a primary key? Okay, obviously not since it has
    duplicates, is ID your primary key? What database, and do you need
    this from ASP or just a query? Might look at:

    How do I remove duplicates from a table?
    [url]http://www.aspfaq.com/show.asp?id=2431[/url]

    Jeff
    Jeff Cochran Guest

  5. #4

    Default Re: Duplicate Entries

    Aaron [SQL Server MVP] wrote:
    > Doesn't look like your primary key column (with a terrible name, pk) is not
    > really a primary key after all.
    >
    > [url]http://www.aspfaq.com/2431[/url]
    > [url]http://www.aspfaq.com/2509[/url]
    > [url]http://www.aspfaq.com/2504[/url]
    >
    Sorry, in my haste, I forgot to update the PK records. PK is not the
    name of the colomn.

    Thanks for the links.
    just1coder@yahoo.ca Guest

  6. #5

    Default Re: Duplicate Entries

    Aaron [SQL Server MVP] wrote:
    > Doesn't look like your primary key column (with a terrible name, pk) is not
    > really a primary key after all.
    >
    > [url]http://www.aspfaq.com/2431[/url]
    > [url]http://www.aspfaq.com/2509[/url]
    > [url]http://www.aspfaq.com/2504[/url]
    >
    Sorry, in my haste, I forgot to update the PK records. PK is not the
    name of the colomn.

    Thanks for the links.
    just1coder@yahoo.ca Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139