select * FROM
(select X.MATRICULA, X.CPF, X.CONTADOR FROM
(SELECT MATRICULA,CPF, count(*) AS CONTADOR FROM NOTAS_FISCAIS WHERE YEAR(DATA_VENDA) = 2016 GROUP BY CPF) X WHERE X.CONTADOR >2000) A INNER JOIN TABELA_DE_VENDEDORES B
ON A.MATRICULA = B.MATRICULA;