Explain the difference between a WHERE clause and a HAVING clause, and provide an example of when you would use each.