Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 02 Mar 2004 @ 22:38:25 GMT


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


Subj:   Re: Delete Query on a huge table taking too much time
 
From:   Mark Ferguson

Another variation to Mirjam's solution is to create the interim table and insert the rows that you want to keep as Mirjam said. Then run a 'delete all' on the production table which is very quick due to the fact that there is no journaling. After the delete is finished, do a straight insert select back into the prod table from the interim table.

The rename option is probably the best but as Mirjam suggested, not everyone has the privileges to drop/rename tables.


Mark K. Ferguson

Teradata Certified Master

Coffing Data Warehousing /Accenture USAF - FIRST Project



     
  <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