I have two tables one has addresses and the other has store locations. What I need to do is pick the 10 closest stores for each record in the address table from the store table. I have a function to calculate the distance but struggling with how to get the store records that match into another table that has each matching store record as a field in the new table.