The Flintstones - Season 1 Episode 8 At the Races Yabba Dabba Doo!
Overview: To finance their dream of opening a pool hall, Fred and Barney visit the dinosaur racetrack where Fred bets his entire paycheck on a long shot. He tells Wilma that he has lost his check. When the long shot pays off, Fred and Barney are initially elated, but they quickly realize their problems are only beginning.