Generate a sequential number for each row while inserting - Teradata
Scenario:
Create a unique row number for each row and then insert the data in to the target table
Solution:
select
row_number() over(order by a.ts desc) as insert_num ,col1 ,col2 ,col3 from a
dan-irving
posted on 02 Jun 18Enjoy great content like this and a lot more !
Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds
Post Comment