Re: [SQL] Duplicated records

2005-05-26 Thread Andrew Hammond
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > Thanks > CTAS (Create Table As Select) command works fine!!! With great performance. > I think it is the best way to correct the data...(apparently) > I didnt know about "select DISTINCT". I am going to read about it. Yo

Re: [SQL] Duplicated records

2005-05-25 Thread lucas
Thanks CTAS (Create Table As Select) command works fine!!! With great performance. I think it is the best way to correct the data...(apparently) I didnt know about "select DISTINCT". I am going to read about it. Thank you. Quoting Bricklen Anderson <[EMAIL PROTECTED]>: Is there a way to del

Re: [despammed] Re: [SQL] Duplicated records

2005-05-25 Thread Andreas Kretschmer
am 25.05.2005, um 13:58:07 -0300 mailte [EMAIL PROTECTED] folgendes: > Hi. > Thanks for the article... > But, I have read it and the query works very slow... > My table have aprox. 180.000 records (correct) and in entire table it has > aprox.360.000 records(duplicated)... How often is this necess

Re: [SQL] Duplicated records

2005-05-25 Thread Alvaro Herrera
On Wed, May 25, 2005 at 01:58:07PM -0300, [EMAIL PROTECTED] wrote: > The records is entire duplicated (with all fields having the same data), > thinking the "numos" fields as primary key I have executed the query: > > # DELETE from lanctos where not oid=(select oid from lanctos as l2 where > l2.n

Re: [SQL] Duplicated records

2005-05-25 Thread lucas
Hi. Thanks for the article... But, I have read it and the query works very slow... My table have aprox. 180.000 records (correct) and in entire table it has aprox.360.000 records(duplicated)... I tried to execute a query to delete the duplicated records, but it worked very very slow... look: #

Re: [despammed] [SQL] Duplicated records

2005-05-24 Thread Andreas Kretschmer
am 24.05.2005, um 17:59:31 -0300 mailte [EMAIL PROTECTED] folgendes: > Hi. > How can I delete the duplicated records with "DELETE FROM TABLE WHERE..." > clause?? Please read http://www.gtsm.com/oscon2003/deletetid.html Its a very good article about this problem. Regards, Andreas -- Andreas Kr

Re: [SQL] Duplicated records

2005-05-24 Thread PFC
How can I delete the duplicated records with "DELETE FROM TABLE WHERE..." clause?? The problem is becouse I have imported data from Dbase (dbf) file, and this function have not built the Constraint (unique, primary key, ...), and this function is usually executed. If you have no primary

[SQL] Duplicated records

2005-05-24 Thread lucas
Hi. How can I delete the duplicated records with "DELETE FROM TABLE WHERE..." clause?? The problem is becouse I have imported data from Dbase (dbf) file, and this function have not built the Constraint (unique, primary key, ...), and this function is usually executed. select * from table1; --id m