SAN FRANCISCO — Paul Goldschmidt broke out of a slump with two hits and two RBIs to help the Arizona Diamondbacks beat the San Francisco Giants 4-2 on Thursday night.
Martin Prado and Aaron Hill also drove in runs for the Diamondbacks, who won their second straight after losing five of their previous six. Miguel Montero added two hits.
Trevor Cahill (6-10) won his third straight decision since coming off the disabled list. He allowed two runs and six hits in five innings, walking four and striking out three.
Brad Ziegler pitched the ninth for his eighth save.
Pablo Sandoval had two hits and drove in a run for the Giants, who have lost three of four. Hector Sanchez also drove in a run and Brandon Belt had two hits.