The relationship between IRR and NPV

What is the relationship between IRR and NPV? Are there any situations in which you might prefer one method over the other? Explain. Despite its shortcomings in some situations, why do most financial managers use IRR along with NPV when elevating projects? Can you think of a situation in which IRR might be a more appropriate measure to use than NPV? Explain.