Detroit Tigers starting pitcher Rick Porcello throws against the Tampa Bay Rays.
DETROIT — All-Star David Price came within an out of a complete game, and the Tampa Bay Rays climbed out of last place in the AL East with a 7-3 victory over the Detroit Tigers on Sunday night.
The Rays have won three straight and eight of nine to move a half-game ahead of defending champion Boston in the standings. Tampa Bay had sole possession of the cellar for 39 consecutive days.
PHOTO GALLERY: Click here to view more photos
Price (8-7) received his fourth All-Star selection before the game, and he allowed three runs and seven hits before being pulled amid rain, thunder and lightning with two outs in the ninth. Jake McGee came on with two on and got the final out for his fifth save in six chances.
Rick Porcello (11-5) allowed seven runs and 11 hits in 5 2-3 innings.
Matt Joyce and Desmond Jennings homered for Tampa Bay, and Torii Hunter and J.D. Martinez went deep for Detroit. The Rays had 19 hits, including four each by Ben Zobrist and Sean Rodriguez.
Price struck out six and walked three, throwing 107 pitches. Martinez led off the Detroit ninth with a homer, and Price was able to get only two more outs as it began to rain steadily at Comerica Park. There was at least one bright streak of lightning beyond center field and loud claps of thunder.
The AL Central-leading Tigers put three players on the All-Star team — Miguel Cabrera, Victor Martinez and Max Scherzer. Porcello is a candidate in online voting for the final American League spot.
Porcello was coming off back-to-back shutouts, but his 25-inning scoreless streak ended before he could retire a batter. Jennings led off with a double and scored on Zobrist's single. Then Joyce's drive was ruled a home run after a review — it hit the railing just above the wall in right field — to give the Rays a 3-0 lead in the first.
Price went at least eight innings for the fifth time in his last six starts. It was his 15th straight outing of at least 100 pitches.
Price could be a prime trade target for contenders over the next few weeks, although Tampa Bay's recent run means the Rays aren't totally out of postseason contention. Tampa Bay is 8 1/2 games behind first-place Baltimore in the AL East, and the Rays trail Seattle by the same margin for the second wild card.
The Tigers, meanwhile, still lead their division by four games after losing three of four to Tampa Bay.
With Price on the mound, the Rays were in good shape after scoring three runs in the first. In the fourth, Evan Longoria added an RBI single to make it 4-1.
Tampa Bay scored three more in the sixth. With men on first and third and one out, Kevin Kiermaier hit a grounder to second that was nearly a double play, but he beat the relay to first for an RBI fielder's choice.
That made it 5-1 and kept the inning going. Jennings followed with a homer to left-center.
Jennings also made sliding catches in center field in the sixth and seventh.
Hunter led off the seventh with a solo shot, his 11th homer of the year. Detroit may have scored another run that inning on Austin Jackson's line drive to the corner in left. But Eugenio Suarez, trying to score from first, lost his footing on the grass outside the baseline and fell about halfway between third and home, giving the Rays an easy out at the plate.
NOTES: Victor Martinez sat out a second straight game with a back issue. ... Tampa Bay LHP Cesar Ramos and wife Melanie celebrated the birth Saturday of Addison Lynn Ramos, their first child. ... Rays SS Yunel Escobar (right shoulder) begins a rehab assignment Monday in the Gulf Coast League. ... Detroit is off Monday. Tampa Bay hosts the Royals. Rays RHP Jake Odorizzi (4-7) takes on Kansas City RHP James Shields (8-4).