If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I understand what you are doing in the insert, but I don't understand the whole thing.
I assume "final table" is the second table I will be inserting into. However, how can I select a value that doesn't exist? I also don't see where you insert the auto-generated number into the second table.
Can you provide a few more details on your example?
No, final table is not a real table, it is the contents of the employee table after the data is inserted. Instead of just asking a bunch of questions, try the statement I gave you (on a real table). If you have any specific questions about how final table works, check out the manual.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390