Good afternoon, folks,
I have two tables and I need to do a SELECT to bind the code of cities that are in table B to the cities of table A.
I'm using the query:
select
a.Cidade,
b.Cidade,
b.cod
from
tabelaA a left join tabelaB b on (a.cidade = b.cidade)
Please, I could help, thank you.
I use the SQL SERVER 2017 Express database