Hi ,
I have two Tables and Script are as follows ,
CREATE TABLE [dbo].[T_COI_INITIATION]( [INITIATION_ID] [int] NOT NULL, [INVITATION_DATE] [date] NOT NULL, [FREEZING_DATE] [date] NOT NULL, [LINEMANAGER_REQUIRED] [bit] NOT NULL, [INITIATED] [bit] NULL, [CREATED_BY] [varchar](50) NULL, [CREATED_ON] [datetime] NULL, [MODIFIED_BY] [varchar](50) NULL, [MODIFIED_ON] [datetime] NULL, CONSTRAINT [PK_COI_INITIATION] PRIMARY KEY CLUSTERED ( [INITIATION_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[T_COI_INITIATION] ADD CONSTRAINT [DF_T_COI_INITIATION_INITIATED] DEFAULT ((0)) FOR [INITIATED] GO
CREATE TABLE [dbo].[T_COI_REMINDER]( [REMINDER_REF_ID] [varchar](50) NOT NULL, [IS_COMPLIANCE_DEADLINE_TYPE] [bit] NOT NULL, [REMINDER_LEVEL] [int] NOT NULL, [REMINDER_DATE%