IF EXISTS
(
    SELECT 1
    FROM SYS.VIEWS
    WHERE NAME = 'V_EST_PROD_PRECO_DESC_QTDE_TENTACLE'
)
    BEGIN
        DROP VIEW V_EST_PROD_PRECO_DESC_QTDE_TENTACLE;
    END;
GO
CREATE VIEW V_EST_PROD_PRECO_DESC_QTDE_TENTACLE
AS
     SELECT CD_PRECO_DESC_QTDE,
            NM_PROMOCAO,
            PERC_DESC,
            CD_USU,
            TP_CLIENTE,
			FLAG_DESCONTO_SOBREPOE_DEMAIS,
			--DT_FINAL,
			--DT_INICIAL,
			--FLAG_CUMULATIVA,
			--FLAG_FAMILIA,
            GETDATE() AS DT_HR_CARGA
     FROM EST_PROD_PRECO_DESC_QTDE;