Pergunta de entrevista da empresa Toddle

There were two questions about SQL queries, mostly easy, based on the aggregation function and joins