How would you map fields values from different tables from Azure Table Query in nodeJS?

I am trying to find the best way to solve How I can add the data from one table to another. I was thinking the best way would be to create an array in the client function and .push the client names + id to that array. From there, compare that array to the other table data.

Here are pictures of what the tables look like
[first Table][1]
[Second Table][2]
[1]: https://i.stack.imgur.com/O2BBz.png
[2]: https://i.stack.imgur.com/WU4oz.png