ST. PETERSBURG, Fla. -- The Tampa Bay Rays completed their long climb back to .500 on Friday night, beating the New York Yankees 5-0 at Tropicana Field.

With the win, the Rays moved to 61-61 and became the fourth team in major league history to reach the .500 mark after being 18 games below it, as they were at 24-42 on June 10. Tampa Bay is the first club to climb out of an 18-game hole since the 2006 Florida Marlins.

On Friday night, right-hander Alex Cobb struck out eight batters over 7 1/3 scoreless innings. Cobb (8-6, 3.19 ERA) has allowed two runs or fewer in seven straight starts, tying a franchise record.

Reliever Brad Boxberger entered in the eighth, gave up a single to Derek Jeter that loaded the bases then struck out Jacoby Ellsbury and Mark Teixeira to help preserve the shutout.

Mariners 7, Tigers 2

DETROIT -- James Paxton remained unbeaten as a starter with six strong innings as Seattle stretched its winning streak to five games.

Paxton (3-0) allowed one run and five hits and struck out two for the victory. The left-hander is 6-0 in nine career starts. Three relievers finished up for Seattle.

Robinson Cano hit a solo home run and scored twice for the Mariners, who have won nine of 10. The first five Mariners reached in the second inning when they scored the first three runs of the game. Logan Morrison and Endy Chavez had back-to-back RBI singles.

Diamondbacks 3, Marlins 2

MIAMI -- Arizona slugged two home runs within the game's first five at-bats and held on to defeat Miami.

Right-hander Trevor Cahill (3-8) allowed two runs in 6 2/3 innings to earn his second victory in the past week. Cahill was helped by 2 1/3 innings of scoreless relief pitching.

Matt Stites worked out of a two-out, bases-loaded jam in the seventh, getting Donovan Solano to ground out. Oliver Perez worked out of a two-on jam in the eighth, getting Jarrod Saltalamacchia to ground into a double play. And closer Addison Reed pitched a perfect ninth inning to earn his 29th save of the season.

Braves 7, A's 2

ATLANTA -- Atlanta slugged four homers in a game for the second time in eight days, opening an interleague series against Oakland with a victory.

Rookie Phil Gosselin, filling in at shortstop for Andrelton Simmons, connected against reliever Jesse Chavez in the sixth inning for his first homer in the majors. Justin Upton, Evan Gattis and Freddie Freeman connected earlier off starter Jason Hammel.

Hammel, who was 8-5 with a 2.98 ERA for the Chicago Cubs, fell to 1-5 with a 5.90 ERA for Oakland since his acquisition in early July.

Mets 3, Cubs 2

NEW YORK -- Eric Campbell hit a three-run homer in the fourth inning, and right-hander Zack Wheeler threw 6 2/3 strong innings as New York edged Chicago.

Campbell's homer off Cubs left-hander Travis Wood was the second of his career and his first since May 21.

Wheeler (8-8) gave up two runs and four hits -- none after the third. He walked four while striking out 10 in the third double-digit strikeout game of his career. He has given up two runs or fewer eight times in his last nine starts, a stretch in which he has an ERA of 2.02.

Nationals 5, Pirates 4

WASHINGTON -- Adam LaRoche and Bryce Harper each had two hits and two RBIs, and Denard Span had three hits and two steals as Washington won its fourth game in a row.

LaRoche had RBI singles in his first two at-bats as the Nationals built a 5-0 lead while Span broke out of an 0-for-11 streak.

Closer Rafael Soriano gave up an RBI single with two outs in the ninth to Pedro Alvarez to make it 5-4, but he retired Josh Harrison on a foul pop to the catcher with two runners on base for his 29th save.

Indians 2, Orioles 1 (11 innings)