Check out example codes for "sql insert for each distinct value". It will help you in understanding the concepts better.
Code Example 1
insert into your_table (col1, col2, col3)
select distinct col1, 'newval', col3
from your_table
Learn ReactJs, React Native from akashmittal.com