Pergunta de entrevista da empresa Axtria

Few SQL based question.