One of the best episodes of Star Trek: TOS was shot on the same set as The Andy Griffith Show.