﻿CREATE VIEW [C6MartPeriodico].[ClientiConCCNegativo]
AS
	SELECT RETE, COD_FISCALE
	FROM  C6MartPeriodico.PATRIMONIO_BF
	WHERE (TIPO_PRODOTTO = 'CC')
	GROUP BY RETE, COD_FISCALE
	HAVING SUM(CTV) < 0