Comparative Market Analysis

What is it? What does it include? How do you pick comparable properties? How many properties do you use? Is it reliable?