Ketel Marte had a two-run single and Tommy Pham added a go-ahead double in the ninth inning to help lead the Arizona Diamondbacks to victory over the Colorado Rockies 8-5.