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\n ,col1\n ,col2\n ,col3\n from a\n
dan-irving
posted onEnjoy 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