Generate SQL MERGE statements with Table data