Hello, I'm able to pull an SQL table that's in a very simple format. One column has a unique ID (UID) another column has column headers, and the third has a UID. I have another table where certain cells have the same UID. I want to plug the values from the first table ("UID") to the second, new table ("New").
Tabulate was the perfect tool to sort the column headers and give me a row count, but because the UID column contains both string and numeric data, I'm unable to directly populate the table with the values through tabulate, so instead I put the UID in for values in the tabulate tool. This at least gave me a way to correlate what value belongs where.
If tabulate can directly populate the actual values (no statistics needed) in place of needing to search for the UID between tables, this would be ideal.
Writing pseudocode is easy enough to show what needs to be done, but the JSL I'm not having luck with. Can anyone help?

for( i = 1, i <= N Cols( data table( "New" ) ), i++, // col-by-col
for( j = 1, j <= N rows( data table( "New" ) ), j++, // row-by-row
if( isempty( column( data table( "New" ), i)[j] ), continue(), // if cell empty, move to next row
id_val = column( data table( "New" ), i)[j] &
id_loc = data table( "UID" ) << Get rows where( :UID == id_val) &
data table( "New" ):eval( column( data table( "New" ))[j] = data table( "UID" ):UID[ id_loc[1] ]
);
);
);
Thank you for your time!