English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In my tables I hve some duplicate rows. I want to remove duplicacy i.e. i want table that have different rows i.e. no duplicacy.

2006-11-27 17:58:42 · 2 answers · asked by parulsaxena2008 1 in Computers & Internet Programming & Design

2 answers

use ROWID in oracle...

2006-11-27 18:32:53 · answer #1 · answered by junaid375 3 · 0 0

you should have some incremental row column (field) in table design or you can add it. then run a query which capture only duplicate or more than one order with same primary key field. then set logic, only keep max or min number from (incremental filed) which you created in begning. In both cases (min or max) you will get rid of one line each and then you will have clean table. Next time in table design you can restrict on table design not to enter duplicate key by defining Primary Key.

Hope it'll help.

2006-11-27 18:21:41 · answer #2 · answered by MickeyMouse 2 · 0 0

fedest.com, questions and answers