I have two tables, tblCity
and tblCountry
and there's no relationship between them at the moment. I need to add CountryId
s from tblCountry
into tblCity
.
This is tblCity
:
This is tblCountry
:
I need to UPDATE tblCity.CountryId
(which is NULL
at the moment) with corresponding tblCountry.CountryId
I have ISO2
and ISO3
country codes in both tables, so please help me with select and update queries for SQL Server.