Hi Dileep,
You can do the query to join the tables and fetch the data from the database. I would be better if you get a stored procedure from your DB guys.
Once you fetch the data from your DB table then you need to update the table in order to avoid duplicates in the data.
Select Statement--> used to fetch the data from DB Table
Update Statement --> to Update the table.
Thanks,
Naveen