View previous topic :: View next topic
|
Author |
Message |
Shaikshavali Warnings : 1 New User
Joined: 18 Jun 2005 Posts: 22 Location: chennai
|
|
|
|
HOW TO RETRIEVE DUPLICATE ROWS FRROM A PARTICULAR TABLE |
|
Back to top |
|
|
Shaikshavali Warnings : 1 New User
Joined: 18 Jun 2005 Posts: 22 Location: chennai
|
|
|
|
HOW TO REMOVE(NOT ELEMINATING) DUPLICATES FROM A TABLE USING SINGLE QUERY |
|
Back to top |
|
|
jagadish2005
New User
Joined: 08 Mar 2005 Posts: 20
|
|
|
|
Hi,
try this query
Select * from tablename group by columnname having count(columnname) > 1
with regards
Arunachalla |
|
Back to top |
|
|
bimalpattanayak
New User
Joined: 08 Apr 2005 Posts: 3
|
|
|
|
select distinct (*) form tablenamewill solve your prob |
|
Back to top |
|
|
karthi_ind
Active User
Joined: 24 Feb 2004 Posts: 131 Location: Chennai
|
|
|
|
Hi Shaikshavali
By using a single query we cant eliminate duplicate rows i thnk
But u can use this subquery to delete duplicate rows
delete from table name where
salary in
(select salary from tablename
group by salary having count(*) > 1)
I thnk it vll work. but it vll delete all duplicate rows.
Corrections are welcome..
Karthi G. |
|
Back to top |
|
|
|