Pergunta de entrevista da empresa Haensel AMS

Difference between where and having clause? How you can tune the channels in the code.