|
-
Originally posted by DaPi
What's wrong with something like:
Insert Into table_B
SELECT REQUEST_ID, etc, etc
FROM table_A
WHERE
ACTUAL_COMPLETION_DATE <= SYSDATE
AND STATUS_CODE = 'C'
AND PHASE_CODE = 'C'
AND PRINTER != 'noprint'
AND NUMBER_OF_COPIES > 0
and not exists
(Select * From table_B
where table_B.request_id = table_A.request_id)
;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|