﻿CREATE VIEW [C6MartPeriodico].[vNumeroIntermediari] AS
SELECT RETE, COD_FISCALE, count(DISTINCT INTERMEDIARIO) as NumeroIntermediari
FROM  C6MartPeriodico.PATRIMONIO_TERZI
GROUP BY RETE, COD_FISCALE