on 11-10-2016 9:10 PM
Hello All,
My requirement is to generate unique row numbers for a column ROW_ID.
I used GEN_ROW_NUM function to generate row numbers, it generated a sequence say from 1-1000. However, when I tried to load a new file, It again generates the row number starting from 1.
This column ROW_ID value should start with the previous maximum count of column ROW_ID and then raise the counter by 1.
Similarly should continue while loading other files.
Can any one please advise me on this requirement?
Regards,
Rajiv
If you are loading file to a permanent table then like you mentioned, use this table in key generation transform. Refer this link for more details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.