I have two tables to store addresses as follows:
I want to get every address, city, name and area name (cityId,Areaid maybe null)
I tried:
SELECT [Details]
,[AddressId]
,[CityId]
,[PlaceName] as CityName
,[AreaId]
,[PlaceName] as AreaName
FROM [MyDB].[dbo].[Address] LEFT OUTER JOIN [MyDB].[dbo].[Places]
ON [CityId] = [PlaceI]
but that will give me only the names of the city. How to get the area name, too?