select distinct values from one table insert into another 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