Pergunta de entrevista da empresa Oktopost

SQL question like: Difference between "Where" and "Having"? Delete from table where id = 1 or 2 --> Is there a problem with this syntax? Some questions about performance --> using indexes