The registration table was not modeled correctly, however I need to do an UPDATE per SQL to perform this import, following example:
See that the children of Bomi Bulsara, need to be in [dependent_name1] and the other in [dependent_name2], I know it is possible but I still have a great difficulty with SQL, could you help me?
The table has up to four columns with the dependent and the dependent table that needs to be imported need to identify the other dependents and be inserted in the next columns, eg if you have 3 dependents then irar insert in dependent1, dependent2, and dependent3 **
Current table:
IDDoFuncionario - nomeDoFuncionario - nomeDoDependente1 - nomeDoDependente2
12 - Joseph Jackson - [nomeDoDependente] - [nomeDoDependente]
13 - Bomi Bulsara - [nomeDoDependente] - [****************]
Data to update the "Current table":
Dependent table
IDDoFuncionario - nomeDoDependente
12 - Michael Jackson
12 - Janet Jackson
13 - Fred Mercury