Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 28 Oct 2009 @ 19:41:23 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: Delete duplicate rows from a MULTISET table
From:   Chris Cotton

     Create table dupeddata as(
     Sel * from table group by < all columns > having count(*) > 1
     ) with data;

     Delete from table
     Where < all columns > in
     ( sel * from dupeddata );

     Insert into table
     Sel * from dupeddata;


Chris Cotton
Senior Analyst
Saks Incorporated

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023