IF EXISTS (SELECT * FROM SYS.TABLES WHERE NAME = 'RC_CLI_CONV_BLOQ_LIBERA_CATGO_EST_ARV_MERC_CATEGORIA')
begin
	DROP TABLE RC_CLI_CONV_BLOQ_LIBERA_CATGO_EST_ARV_MERC_CATEGORIA
END
 
IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME = 'RC_CLI_CONV_BLOQ_LIBERA_CATEG_EST_ARV_MERC_CATEGORIA')
begin

	CREATE TABLE [dbo].[RC_CLI_CONV_BLOQ_LIBERA_CATEG_EST_ARV_MERC_CATEGORIA](
		[CD_EMP] [int] NOT NULL,
		[CD_CTR] [int] NOT NULL,
		[CD_CATEG] [int] NOT NULL,
		[FLAG_CRM] [int] NOT NULL,
	 CONSTRAINT [PK_RC_CLI_CONV_BLOQ_LIBERA_CATEG_EST_ARV_MERC_CATEGORIA] PRIMARY KEY CLUSTERED 
	(
		[CD_EMP] ASC,
		[CD_CTR] ASC,
		[CD_CATEG] ASC
	)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
	) ON [PRIMARY] 
end

