SELECT
	l.record_number
	,l.Name
	,IF(l.record_number = 1, si.Street,l.Street) AS Street
	,IF(l.record_number = 1, si.City,l.City) AS City
	,s.Name AS State
	,IF(l.record_number = 1, si.Postal_Code, l.Postal_Code) AS Postal_Code
	,c.Alpha_3 AS Country
	,l.Warehouse
	,l.Retail_Store
FROM
	Locations l
LEFT JOIN
	Store_Information si
ON
	l.record_number = si.record_number
LEFT JOIN
	States s
ON
	l.State_or_Province = s.record_number
	OR si.State_or_Province = s.record_number
LEFT JOIN
	Countries c
ON
	l.Country = c.record_number
	OR si.Country = c.record_number
