Você está vendo a versão anterior da nova experiência da Alura que estamos preparando para você. Em breve, ela ganha uma identidade visual novinha totalmente pensada em potencializar seus estudos!
Eu fiz um pouco diferente...
select nome, avg(VOLUME_DE_COMPRA) Volume, sum(QUANTIDADE) Quantidade,
concat(monthname(DATA_VENDA), '/', year(DATA_VENDA)) as data_venda,
case
when avg(VOLUME_DE_COMPRA) >= sum(QUANTIDADE) then 'Válidas'
else 'Inválidas'
end as Status_Vendas
from tabela_de_clientes tc
join notas_fiscais nf on tc.cpf = nf.CPF
join itens_notas_fiscais inf on nf.NUMERO = inf.NUMERO
group by nome, concat(monthname(DATA_VENDA), '/', year(DATA_VENDA))
order by nome;