Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 28 Mar 2012 @ 21:26:46 GMT


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


Subj:   Re: How to find duplicate record
 
From:   vrushangpatel

Following sql should help to find duplicates

     SELECT last_name AS Name
         ,salary_amount   AS Salary
         ,department_number   AS Dept
         ,COUNT(Salary) OVER (PARTITION BY
     Dept,Salary_amount,department_number) AS Cnt
     FROM employee
     WHERE cnt>1

Regs

Vrushang



     
  <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