Sry for pitching in middle. Correct me if my understanding is wrong :-)
Bala, put a coalesce in the max -- SELECT coalesce(MAX(rwid),1) FROM table1. But again you wont get the same sequence when you are doing the insert for the second time as like the first time.
Sry for pitching in middle. Correct me if my understanding is wrong :-)
Bala,
put a coalesce in the max -- SELECT coalesce(MAX(rwid),1) FROM table1. But again you wont get the same sequence when you are doing the insert for the second time as like the first time.