Chris Denorfia delivered his second key hit in as many days in the Padres' 3-2 victory over the Giants on Tuesday.

The outfielder ripped an RBI single in the seventh to break a 2-all tie at Petco Park. It would prove the game-winner as San Francisco became the sole occupant of the National League West basement.

A day earlier Denorfia supplied a two-run single in a 4-1 win over the Giants who sorely missed such opportunistic production. Tuesday the visitors stranded 11 base runners.

They first failed to capitalize against Robbie Erlin whose pitch count soared to 30 before the second inning. The Oakland native allowed a pair of singles around a flyout and a strikeout. He then issued a two-out walk to Hunter Pence to load the bases. He avoided further trouble when Pablo Sandoval could not check his swing on a high fastball.

Erlin was more economical thereafter. He finished with 98 pitches over 5 1/3 innings of work. He struck out five while being tagged with two runs on six hits. Since being recalled from Triple-A Tucson last week the left-hander has allowed three runs in 11 1/3 innings.

Padres batters meanwhile had only Nick Hundley's single to show for their efforts through four innings. Then came the fifth.

Kyle Blanks ripped a standup double down the right-field line. Hundley drove Blanks in with a double off the wall. Giants starter Madison Bumgarner intentionally walked Ronny Cedeno to bring Erlin to the plate. A presumed out instead turned into Erlin's first major-league hit a flare over the outstretched glove of Giants second baseman Tony Abreu. The RBI single gave the Padres a 2-0 lead.

On the mound though Erlin encountered similar trouble in the sixth. He surrendered three singles the last scoring Brandon Belt before he was relieved by Tim Stauffer. Stauffer promptly gave up a game-tying RBI single.

But the Giants squandered prime opportunities in the seventh and eighth leaving a runner on third base in both innings.

Hundley walked to lead off the bottom of the seventh. He moved to third on Cedeno's single. Following a popout Denorfia came up to bat. He fell behind in the count before fouling off two pitches. The sixth pitch from Giants reliever Javier Lopez ended up in left field as Hundley trotted home.