I have four tables
tabela A aic002
campos :
codigo data nome especie valor rg cpf exped
Tabela B excli
campos
codigo nome rg cpf exped
tabela C imovel
Campos
codigo imovel rua bairro cidade estado
tabela D escritura
codigo data especie valor rua bairro cidade estado
I would like to execute a single% w_that%:
- would get the fields (date species value) FROM A and popularize in D what would be the control chart of scripts
- get fields (name rg cpf file) from A and popularize it in B thus creating a new customer table
- pick up (street neighborhood city state) from C and popularize in D to complete customer addresses
How to do this in a single insert
knowing that:
Tables A, B, and C are listed by code but the only one that does not repeat the code is Table C's