Could anyone help me to remove duplicate rows?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Could anyone help me to remove duplicate rows?

    I have a table that has more than 1 milion rows so practically it is
    impossible to remove all duplicate rows by hand.
    Could you help me to remove those duplicate rows at all?
    This table doesn't have primary key( identity ) column.

    Say Table name => MyTable
    Column => Col1,Col2,Col3
    No primary key column here.

    Thanks a lot in advance.



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    TaeHo Yoo Guest

  2. Similar Questions and Discussions

    1. MySql UPDATE problem with duplicate rows
      Hi, I have a MySql problem I hope someone can help me with. I'm trying to run an update on a linking table, the update is running into a Primary...
    2. How to delete duplicate rows?
      This one must be obvious for most here. I have a 170 million rows table from which I want to eliminate duplicate "would be" keys and leave only...
    3. how to eliminate duplicate rows?
      Hi I have one table with two field in sql server 2000. Table data looks like this: Field1 Field2 Admin Active Admin Passive Sales ...
    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. Select rows where other related rows don't exist
      I would like to select rows from a table where another related row in the same table doesn't exist and the relation key is more than 1 column. ...
  3. #2

    Default Re: Could anyone help me to remove duplicate rows?

    TaeHo Yoo <yootaeho@yahoo.com> wrote in
    news:#VBSQEzTDHA.1364@TK2MSFTNGP10.phx.gbl:
    > I have a table that has more than 1 milion rows so practically
    > it is impossible to remove all duplicate rows by hand.
    > Could you help me to remove those duplicate rows at all?
    > This table doesn't have primary key( identity ) column.
    >
    > Say Table name => MyTable
    > Column => Col1,Col2,Col3
    > No primary key column here.
    Have you looked into using SELECT DISTINCT?

    Hope this helps.

    Chris.
    -------------
    C.R. Timmons Consulting, Inc.
    [url]http://www.crtimmonsinc.com/[/url]
    Chris R. Timmons 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