DROP TABLE [EST_ARV_MERC_MIX_ANALISE_VENDAS_FILIAL]

IF NOT EXISTS(SELECT TOP 1 1 FROM INFORMATION_SCHEMA.TABLES WHERE
						TABLE_NAME='EST_ARV_MERC_MIX_ANALISE_VENDAS_FILIAL')
BEGIN
CREATE TABLE [dbo].[EST_ARV_MERC_MIX_ANALISE_VENDAS_FILIAL](
	[CD_EMP] [int] NOT NULL,
	[CD_FILIAL] [int] NOT NULL,
	[CD_PROD] [int] NOT NULL,
	[ANO] [int] NOT NULL,
	[MES] [int] NOT NULL,
	[QTDE_TOTAL] [money] NOT NULL,
	[VLR_VD_TOTAL] [money] NOT NULL,
	[DT_CAD] [datetime] NOT NULL,
 CONSTRAINT [PK_EST_ARV_MERC_MIX_ANALISE_VENDAS_FILIAL] PRIMARY KEY CLUSTERED 
(
	[CD_EMP] ASC,
	[CD_FILIAL] ASC,
	[CD_PROD] ASC,
	[ANO] ASC,
	[MES] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
)

END