D.J. LeMahieu hit a tiebreaking single in a five-run ninth inning, lifting the Colorado Rockies to a 7-4 win over the San Francisco Giants on Friday night.