COUNTER DATE

Post Reply
kzinda
Posts: 62
Joined: Fri Nov 30, 2001 6:18 am

COUNTER DATE

Post by kzinda »

We have to delete records from a table where the only definitive way to identify those records is by viewing the date encoded in the COUNTER value used as the row id when they were loaded. What would be the command to delete only those records in table PATN where the year encoded in id = 2005?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

COUNTER DATE

Post by John »

The SQL would be:

delete from PATN where id >= '2005-01-01' and id < '2006-01-01'
John Turnbull
Thunderstone Software
Post Reply