delete rows older than 2 years from current date
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


delete rows older than 2 years from current... Expand / Collapse
Author
Message
Posted 2/6/2007 9:40:12 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 4/22/2007 2:58:00 PM
Posts: 18, Visits: 1
i am running job today 2007-02-06...i want to delete data prior to 2005-02-06
please help me in this regard

Thanks in advance
chinna
Post #6481
Posted 2/7/2007 1:40:59 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 8/4/2009 12:24:24 PM
Posts: 144, Visits: 93
First try to build an SQL select query with a 'where clause' of the date u mentioned.
Check if the data u intend to delete is selected or not.
Then change the select to delete with same where clause.
Test it on few rows first.
If the result is as expected then change the where condition accordingly and then run it on production data.
Hope this helps.


Regards
Ramakrishna Vedantam
Telecom Technology Excellence Group
Tata Consultancy Services
Website: http://www.tcs.com
Post #6485
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 3:11pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 8 queries. Compression Disabled.