I have a table with 7 columns:
SELECT [Policy_ID], [DateAdded], [DateUpdated], [PartyRecords], [AccountNumber], [UpdatedBy], [UpdatedOn] FROM [Policy_Stat] The PartyRecords column stores XML that looks like this:
In my universe, using IDT, I need to pull each party record out into it's own set of dimensions - PartyTypeCode, PartyName, PartyCorrespondenceName, LocationAddressLine1, LocationAddressLine2, LocationCity, LocationStateCode, LocationPostalCode, PartyRole.
In the case above, I would end up with 3 sets of dimensions. In SQL, I would use cross apply, for example:
SELECT PartyRecord.value('PartyName[1]', 'nvarchar(100)') AS PartyName FROM Policy_Stat CROSS APPLY PartyRecords.nodes('/ArrayOfPartyRecord/PartyRecord') AS X(PartyRecord) However, I'm not sure how to approach this in IDT. Any suggestions would be welcome.


