sql insert from table to table data unique code example
Example: sql insert for each distinct value
insert into your_table (col1, col2, col3)
select distinct col1, 'newval', col3
from your_table
insert into your_table (col1, col2, col3)
select distinct col1, 'newval', col3
from your_table