Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Deleting duplicate rows in multiset table - response (7) by umitk

$
0
0

Hi,
Table Name : Table
Duplicate column : A
 
DELETE FROM TABLE WHERE
(
SELECT DISTINCT * FROM
     ( SELECT ROWID,T.* FROM TABLE T WHERE A IN ( SELECT A FROM TABLE GROUP BY A HAVING COUNT(1)>1)
)
I haven't tried it yet but I think this will help you.
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>