I have these two tables in the database (SQL Server)
Banking Table
ID CODIGO NOME
1 246 Banco ABC Brasil S.A.
2 075 Banco ABN AMRO S.A.
3 025 Banco Alfa S.A.
4 001 Banco do Brasil S.A.
Account Table
NRCONTA AGENCIA NRBANCO NOMECOR
601 1 001 TESTE 1
1 1 001 TESTE 2
2 2 002 TESTE 3
601 1111 001 TESTE 4
7 1111 001 TESTE 5
27 1 027 TESTE 6
27 1 027 TESTE 6
I would like to upgrade to 001 "of the NRBANCO "Account" If the current value does not exist in the "Banks" / em> .