In oracle, we will use rownum on select when creating this table. Now in teradata I can't get it to work. There is no column in which I can sort and have unique values (lots of duplication) unless I use 3 columns together.
The old way would be something like
create table temp1 as
select
rownum as insert_num,
col1,
col2,
col3
from tables a join b on a.id=b.id
;
source
share