Add the method mergeTableData.