(CNN) -- The Tampa Bay Rays and St. Louis Cardinals won wild card berths in the Major League Baseball (MLB) playoffs after dramatic victories Wednesday. Trailing 7-0 to the American League (AL) East champion New York Yankees in St. Petersburg, Florida, the Rays launched an astonishing comeback to win in the 12th-inning. Despite their comeback success, the Rays still needed the Baltimore Orioles to defeat the Boston Red Sox in Maryland to clinch the berth on the regular season's final night. The O's obliged by notching a 4-3 win in the bottom of the ninth in a game delayed by rain for an hour and a half.
@highlight
The Tampa Bay Rays and St. Louis Cardinals have clinched MLB wild card berths
@highlight
The Rays came back from 7-0 down to win in the 12th-inning
@highlight
The Cardinals beat Houston 8-0 to earn their playoff berth
@highlight
Boston Red Sox and Atlanta Braves suffer late-season collapses to miss out
The @placeholder' victory capped a remarkable turnaround, with the Florida-based team having been nine games behind the Red Sox on September 3.