View previous topic :: View next topic
|
Author |
Message |
callkris_cit
New User
Joined: 22 Apr 2006 Posts: 44
|
|
|
|
I have a CHILD table and PARENT table - Primary foreign key relationship
DELETE FROM CHILD_TABLE
WHERE EXISTS ( SELECT 1 FROM PARENT_TABLE B
WHERE A.COL_NAME = B.COL_NAME
AND B.TIMEVAL < CURRENT TIMESTAMP - 2 YEARS)
Both table contain more records. Plese let me know if i run this SPUFI via batch JCL, is it fine.
Or is there any issue, since i am deleting more records from the table using batch spufi. Or is there any other way i can do this, |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you start over and explain what it is you actually want to do and what is your concern?
What is "more records"? If this is something "real" i probably would not use SPUFI.
Suggest you consider unloading the data and reloading the data that is to be kept.
If this is "real" some kind of audit trail should be kept. The "before" and the "after" data might suffice. . . |
|
Back to top |
|
|
|