merge statement item to detail