Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 28 Mar 2012 @ 16:49:34 GMT


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


Subj:   Re: How to find duplicate record
 
From:   Sirupa Ashok

Hi,

This will gives you duplicates on a table if col1 is unique key

If you have more columns add them in select and group by

     select col1,count(*)
     from table a
     group by col1
     having count(*) >1;


     
  <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