Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 17 Aug 2005 @ 18:12:14 GMT


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


Subj:   Re: Deleting Duplicate rows
 
From:   Michael Larkins

Surendra:

Since you do not wish to create a new table and ins into it all of the DISTINCT row values or make it a SET table and SELECT *, you do not want to do it the fastest and easiest way possible, even with a temporary table.

Therefore, with your other restrictions in place, I suggest that you experiment with a stored procedure to read the rows, sort them and go through them one row at a time checking to see if the next one is SPOOL is the same as the previous one and when it is, delete it. This sure is a lot of work for something that is simple and fast once you take away the restriction of not using an interim table.

May I ask why you are using a MULTISET table if you do not want duplicates. Seems contra-indicated to me.


Regards,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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