At the end of "There's Something about Mary" (1998) the characters sing "Build me up, Buttercup" which seems to be fairly unrelated to the film and at the time unique.
Was TSaM the first film to employ a "Cast Song" for the credits? If not what was? I'd also be curious about what other films have used this for credits.