Mercer Interview Question

When would you use correlation, how is it different from linear regression?