move joins from table to column