Pergunta de entrevista da empresa Piramal Finance

SQL querries based question on how to write query with SQL groupby