I highly recommend Robert McKee's Dialogue: The Art of Verbal Action for the Page, Stage, and Screen. Excellent book on how to write dialogue with tons of examples. I've seen some the shows cited, but now I view how the characters interact in a whole new way.