Updated

Oakland, CA (SportsNetwork.com) - Lucas Duda hit a three-run homer as the New York Mets roughed up Oakland's Jeff Samardzija in an 8-5 win at O.co Coliseum.

Curtis Granderson, Daniel Murphy and Eric Campbell each had two hits and one RBI for the Mets, who snapped a three-game losing streak. Zack Wheeler (9-8) won his sixth straight decision after allowing four runs -- two earned -- on four hits and three walks in 5 2/3 innings.

Samardzija (3-3) was victimized for seven runs on seven hits and two walks in 3 2/3 innings.

Oakland, which snapped its season-high five-game losing streak in Tuesday's opener of this two-game interleague set, trails the AL West-leading Angels by 1 1/2 games. The A's host their division rivals this weekend.

The A's produced a run without a hit in the eighth. They loaded the bases with one out on two walks and an error. Sam Fuld drew another walk to trim the deficit to 8-5, but New York reliever Jeurys Familia struck out Andy Parrino looking and got Josh Donaldson on a grounder to short to end the inning.

Familia pitched around a Stephen Vogt double in the ninth to earn his fourth save of the season.

There were a flurry of two-out runs after both starters opened the game with two perfect innings.

Campbell led off a five-run third by driving Samardzija's 2-0 pitch over the center-field wall. Consecutive two-out singles by Granderson and Murphy preceded a walk to David Wright. Samardzija threw a wild pitch with the bases loaded, scoring Granderson, before Duda crushed an offering to center for his career-high 23rd home run.

Wheeler retired the first eight batters before Sogard reached on a four-pitch walk. Coco Crisp and John Jaso then hit back-to-back RBI doubles to right.

"I think Coco has been doing well recently, getting big hits with runners on base," Jaso said.

Granderson and Murphy knocked in runs with two-out singles in the fourth to make it 7-2, but two scored in the bottom of the frame for Oakland when Murphy kicked Parrino's two-out grounder.

"Every time we score, you try to go out there the next inning and put up a zero, but it didn't happen that way today," Wheeler said. "Luckily, we had the bats going all game long and were able to stay ahead of them and pull out a W."

Wilmer Flores singled home Duda with two outs in the fifth to put the Mets up 8-4.

New York had a chance to extend its lead in the sixth, but Fernando Abad induced a rally-killing fly out from Matt den Dekker.

Game Notes

Wheeler improved to 6-0 in his last 10 starts. The unbeaten streak began after a loss to Oakland on June 25 ... Oakland had won each of Samardzija's first five home starts ... Abad has stranded all 26 inherited runners this season ... The A's were 1-for-9 with runners in scoring position.