US pharmaceutical giant Merck & Co Inc (NYSE:MRK), doing business as MSD, has agreed to buy power from 45 MW of solar parks that French oil-and-gas major Total SA (EPA:FP) owns in Spain.