A recent Famikly Handyman magazine a quite a comprehensive article on that subject- either this past or just prior issue if not available on the newstand, at your library. It also covers conneting different types of pipe.
Also see here. http://www.familyhandyman.com/plumbing