我有一个文件需要使用SSIS进行转换,如下所示:
Date : 20 SEP 2011
Renewal Business Bordereau for August 2011 - AXC Ins Co - Facultative
PolicyNo, LastName, FirstName, SX, Date Of Birth, Policy Type
========,=========,==========,===,==============,============
0001211 , Oscar , David , M , 29011977 , DEATH
0001213 , Obeten , Samul , F , 29031978 , DISABILITY
0001214 , Owen , David , M , 29031975 , DEATH
Date : 20 SEP 2011
Lapsed Business Bordereau for August 2011 - AXC Ins Co - Facultative
PolicyNo, LastName, FirstName, SX, Date Of Birth, Policy Type
========,=========,==========,===,==============,============
0001424 , Darren , Jacoobs , F , 29031996 , DISABILITY
0001635 , Owen , Bergdal , F , 29031965 , DISABILITY
0001132 , Ahmed , Muhamad , M , 29031977 , DEATH
Date : 20 SEP 2011
New Business Bordereau for August 2011 - AXC Ins Co - Facultative
PolicyNo, LastName, FirstName, SX, Date Of Birth, Policy Type
========,=========,==========,===,==============,============
0001210 , Djibril , Pogba , M , 29031977 , LIFE
0001999 , Thabang , Ngwenya , M , 29031966 , DEATH
我希望它看起来像下面的那个,其中创建了movingType和Date列,并填充了节标题中的数据,如下所示
PolicyNo, LastName, FirstName, SX, Date Of Birth , Policy Type , MovementType , Date
0001211 , Oscar , David , M , 29011977 , DEATH , Renewal Business , August 2011
0001213 , Obeten , Samul , F , 29031978 , DISABILITY , Renewal Business , August 2011
0001214 , Owen , David , M , 29031975 , DEATH , Renewal Business , August 2011
0001424 , Darren , Jacoobs , F , 29031996 , DISABILITY , Lapsed Business , August 2011
0001635 , Owen , Bergdal , F , 29031965 , DISABILITY , Lapsed Business , August 2011
0001132 , Ahmed , Muhamad , M , 29031977 , DEATH , Lapsed Business , August 2011
0001210 , Djibril , Pogba , M , 29031977 , LIFE , New Business , August 2011
0001999 , Thabang , Ngwenya , M , 29031966 , DEATH , New Business , August 2011
注意:这不是一个文件的组合,它是一个具有不同节标题的文件,每个标题包含MovementType和日期(movingtype指的是事务类型,date指的是事务日期),当你看一下你将在2011年8月看到的每一个标题。一个人只能存在于一个部分,而policynumber只能在一个部分找到,因为只能进行一次交易