Database schema: create table ApplicationUserRole (UserRolesId Integer FK->Roles.id, UserId Integer FK->ApplicationUsers.Id); 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 UserLocations (ApplicationUserId Integer FK->ApplicationUsers.id, LocationId Integer FK->Locations.id); Create Table ApplicationUsers (AuthServerId INTEGER, CertExpirationDate DATE, Deleted INTEGER, Email VARCHAR(50), FirstName VARCHAR(50), ForkliftCertified INTEGER, Id INTEGER PRIMARY KEY, LanguageId INTEGER FK->Languages.id, LastName VARCHAR(50), LoginType INTEGER, PhoneNumber VARCHAR(10), SamAccountName VARCHAR(10),  Username VARCHAR(10) );CREATE TABLE Roles (  Id INTEGER PRIMARY KEY, Name VARCHAR(50) ,  Description VARCHAR(50) );Create Table Permissions (Id Integer Primary Key, Name varchar(35), Description varchar(100), ApplicationModuleId integer);Create Table PermissionRole (RolePermissionsId Integer FK->Permissions.id , RolesId Integer FK->Roles.id)
Question: list all the users and associated locations 
SQL: select * from ApplicationUsers au join UserLocations ul on au.Id = ul.ApplicationUserId join locations loc on ul.LocationId = loc.id