Database schema: create table Locations (CloseTime time, Deleted integer, EquipmentInspectionInterval integer, Id integer primary key, LocationNumber varchar(20), FreightCodeId integer FK->FreightCodes.id, MaxLoadPerTimeslot integer, IsOpen24Hours integer, LanguageId integer FK->Languages.Id, Name varchar(20), LastCountDate datetime, NextCountDate datetime, NonWorkingTimeSetId integer FK->NonWorkingTimeSet.Id, OpenTime time,  ProcessedPutAwayPullFromLocationId integer FK->Locations.id, ShortName varchar(20),TimeslotDuration integer, TargetDaysOnHand integer, TaxId varchar(50), TypeId integer FK->LocationTypes.Id);Create table LocationAddresses(Id Integer Primary Key, Type Integer, DisplayName varchar(100), StreetAddress varchar(250), City varchar(50), state varchar(50), zip varchar(15), country varchar(25), contactName varchar(100), PhontNumber varchar(35), EmailAddress varchar(35), LocationId Integer FK->Locations.Id, TimeZone varchar(100));
Question: show me all the locations and their addresses 
SQL: select name, shortname, locationnumber, loc.deleted, displayname, streetaddress, city, state, zip, country, contactname, phonenumber, emailaddress from locations loc join LocationAddresses la on loc.id = la.LocationId