merge 3 table into 1