Pergunta de entrevista da empresa Google

2 SQL Questions - Write SQL with join and sum and count