Hi,
we have a task to validate our hierarchy data and whether there are any gaps in our table and compare it with our source table.
The hierarchy that we check is only within our client.
our data structure is below we need to identify the gap
below is the source table which we need to align to.
First, we must connect the gap within our client (ClientFlag = 'Y') by generating a new record.
Hence the desired output would be:
We need to generate new record (e.g. second record in bold) to fill the gap before we can compare link children and parent?
Any help would be greatly appreciated.
Thanks.
we have a task to validate our hierarchy data and whether there are any gaps in our table and compare it with our source table.
The hierarchy that we check is only within our client.
our data structure is below we need to identify the gap
below is the source table which we need to align to.
Code:
childID parentID HierarchyId ClientFlag
012 123 1 Y
123 234 2
234 456 3
456 789 4
789 101 5 Y
101 102 6 Y
First, we must connect the gap within our client (ClientFlag = 'Y') by generating a new record.
Hence the desired output would be:
Code:
childID parentID HierarchyId ClientFlag
012 123 1 Y
[b]123 789 2 Y[/b]
789 101 3 Y
101 102 4 Y
We need to generate new record (e.g. second record in bold) to fill the gap before we can compare link children and parent?
Any help would be greatly appreciated.
Thanks.