SELECT AY.CPF FROM
(SELECT CPF, COUNT(*) FROM NOTAS_FISCAIS
WHERE TO_CHAR(DATA_VENDA, 'YYYY') = '2016'
GROUP BY CPF) AY
WHERE ay.cpf > 2000
Total de 14 cpf.
CPF
8502682733 3623344710 50534475787 7771579779 1471156710 5648641702 5576228758 19290992743 492472718 5840119709 9283760794 2600586709 94387575700 8719655770