0

how to remove the duplicate rows without the help of rowid and primary key.

10th Sep 2016, 4:40 PM
Srinath Mudiraj
Srinath Mudiraj - avatar
4 Respostas
+ 2
what about using DISTINCT?
10th Sep 2016, 5:46 PM
Natalya Shtikel
Natalya Shtikel - avatar
+ 1
@natalya distinct will not remove the data from the table, it will just displays the results without duplicate. distinct will not alter table .
11th Sep 2016, 3:41 PM
sangamesh naikar
sangamesh naikar - avatar
0
delete from EmpDup where EmpID in(select EmpID from EmpDup group by EmpId having count(*) >1).......... in this query EmpDup is table name and EmpID column having duplicate values. using this query u can delete duplicate values
11th Sep 2016, 3:48 PM
sangamesh naikar
sangamesh naikar - avatar
0
thanq
11th Sep 2016, 3:51 PM
Srinath Mudiraj
Srinath Mudiraj - avatar