
IF EXISTS
(
    SELECT 1
    FROM SYS.VIEWS
    WHERE NAME = 'V_EST_ARV_MERC_EQUIVALENTE_EST_PROD_FABRIC_TENTACLE'
)
    BEGIN
        DROP VIEW V_EST_ARV_MERC_EQUIVALENTE_EST_PROD_FABRIC_TENTACLE;
    END;
GO
CREATE VIEW V_EST_ARV_MERC_EQUIVALENTE_EST_PROD_FABRIC_TENTACLE
AS
     SELECT CD_EMP,
            CD_ARV_MERC_EQUI,
            CD_FABRIC,
            ORDEM,
            CD_APRES
     FROM EST_ARV_MERC_EQUIVALENTE_EST_PROD_FABRIC;