"SELECT Customers.ID, PostalGroups.Group
FROM Customers INNER JOIN PostalGroups ON GetPrefix(Customers.PostalCode) = PostalGroups.Prefix;"
So, it looks at the Customer table, find the post code prefix and then picks the postal group from the postal group table. Then assigns the Customer ID the...