Pergunta de entrevista da empresa Infosys

4.) SQL query (related to group by and having)