ST. PETERSBURG, Fla. -- Derek Jeter almost felt as if he were playing in the Bronx after getting a key late hit.
The announced crowd at Tropicana Field was 31,042, the Rays' second home sellout this season. Tampa Bay entered with the major league's lowest average home attendance of 17,848.
"There are a lot of Yankees' fans down here because spring training is here," Jeter said. "Seemed like quite a few were in the stands, so it's almost like a home game."
Jeter is retiring after this season and playing in his final weekend games at Tampa Bay. The Yankees do return for three weekday games in September.
"I'm not so sure I've heard his name chanted that loud in an opposing stadium this year," Yankees manager Joe Girardi said.
Brett Gardner opened the ninth with an infield single off Jake McGee (3-1) and advanced on a throwing error by second baseman Logan Forsythe. After failing to lay down a sacrifice bunt, Jeter put New York ahead with a single to right-center on a 2-2 pitch.
"This game is funny, you know," Girardi said. "It changes on a drop of a hat."
Rookie Shane Greene allowed two runs, seven hits and struck out a career-high 10 in six-plus innings.
The Yankees took a lead in the second when Chase Headley drew a two-out walk on a full-count pitch and Martin Prado homered on an 0-2 offering from Drew Smyly, making his first home start since being acquired in a trade that sent ace David Price to Detroit on July 31.
Smyly gave up two runs and four hits over seven innings.
"They've got a really good lineup," Smyly said. "They have good strike zone awareness. You just have to keep going right at them and making them swing."
Price is scheduled to pitch against Tampa Bay for the first time Thursday in the finale of a three-game series in Florida.
The Rays extended their club-record streak of allowing three runs or fewer to 12 consecutive games, but have gone just 7-5 over the stretch.
Tampa Bay had become the fourth team ever in the majors to get back to .500 after being at least 18 games under the break-even point with a 5-0 victory Friday night over the Yankees that gave them a 61-61 record.
Rays: OF David DeJesus (left hand) went 0 for 1 with a walk in his first Gulf Coast League game.
The Yankees captain has 20 career game-winning RBI hits against the Rays, which is second most against Tampa Bay. Boston's David Ortiz tops the list with 26.
Yankees RF Carlos Beltran played defense for the first time since mid-May. After a DL stint that went into early June due to a right elbow bone spur, he had been limited to DH. Beltran said he will have surgery on the elbow after the season.
ON THE MOVE
Atlanta Braves' Game 2 starter Max Fried says he's 'not against' pitching Game 5 on short rest
Atlanta's Game 2 starter said, "We'll see how I feel over the next couple days," as the Braves look at pitching solutions in the wake of Charlie Morton's broken leg.
Jose Altuve breaks out to help Houston Astros tie up World Series against Atlanta Braves
Jose Altuve scored the first run of the night, then tallied the final one on a home run that moved him into a tie for second in postseason homers, as the Astros evened the World Series against the Braves.
How the Astros were able to rebound in Game 2
Eduardo Perez and Tim Kurkjian detail how Jose Urquidy, Jose Altuve and the Astros were able to get the win in Game 2.
Astros bounce back with Game 2 win to even series
The Astros score four in the second, and Jose Altuve adds a home run to level the series at one game apiece.
Altuve goes yard to extend Astros' lead
The Astros take a 7-2 lead over the Braves in the seventh inning after Jose Altuve delivers a towering home run to left field.
World Series Game 1 viewership up 17.5% over last year's low
Atlanta's 6-2 victory over Houston in Game 1 of the World Series drew an average of 10,811,000 viewers, up 17.5% from last year's record low.