Infosys interview question

What is the difference between where and having ?(SQL)