IF OBJECT_ID('GLB_IMPOSTOS_TBL_IR') IS NULL 
BEGIN
	CREATE TABLE [dbo].[GLB_IMPOSTOS_TBL_IR](
		[CD_CTR] [int] IDENTITY NOT NULL,
		[COD_IMP] [int] NOT NULL,
		[VLR_BC_INI] [money] NULL,
		[VLR_BC_FIM] [money] NULL,
		[ALIQUOTA] [float] NULL,
		[VLR_DEDUCAO] [money] NULL,
		CONSTRAINT [PK_GLB_IMPOSTOS_TBL_IR] PRIMARY KEY CLUSTERED 
	   (
	   [CD_CTR] ASC
	   )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
	   ) ON [PRIMARY]
	   
   ALTER TABLE [DBO].[GLB_IMPOSTOS_TBL_IR] WITH CHECK ADD CONSTRAINT [FK_GLB_IMPOSTOS_TBL_IR_GLB_IMPOSTOS] FOREIGN KEY ([COD_IMP])
		REFERENCES [DBO].[GLB_IMPOSTOS] ([CD_CTR])  
   ALTER TABLE [DBO].[GLB_IMPOSTOS_TBL_IR] CHECK CONSTRAINT [FK_GLB_IMPOSTOS_TBL_IR_GLB_IMPOSTOS]
END