When to use HAVING clause in a Select Statement?

Hi there experts.
I know basic queries but Im having a confusion on this matter.
Ive been mostly using WHERE clause in a select statement but Im not quite sure when to use HAVING.
When should I use this clause and not WHERE clause?
I would be very happy if youll help me out on this.
