Dineshkumar Palanisamy K
New Member
- Joined
- May 27, 2021
- Messages
- 9
- Office Version
- 365
- Platform
- Windows
Hi,
I have Data table which has data as shown below
In this I need to get the "Component" data which are structured under "Item" and after that each component will be considered as "Item" and recursive CTE comes here. Please help me to sort this out.
Sample Input:
Sample Output
in this Item is Assy. no and Component data need to be populated in Respective levels.
For example
"001-1194-8" will be given as Input, so it is considered as "Item" and 1st level data will be "Component" from data table. After that this "component" (001-1194-8FL) will be considered as "Item" and their respective "component" will be populated in adjacent cell and it has to be done till now item is found in "Item" data as shown in sample Output.
Thanks in advance.
I have Data table which has data as shown below
In this I need to get the "Component" data which are structured under "Item" and after that each component will be considered as "Item" and recursive CTE comes here. Please help me to sort this out.
Sample Input:
Sample Output
in this Item is Assy. no and Component data need to be populated in Respective levels.
For example
"001-1194-8" will be given as Input, so it is considered as "Item" and 1st level data will be "Component" from data table. After that this "component" (001-1194-8FL) will be considered as "Item" and their respective "component" will be populated in adjacent cell and it has to be done till now item is found in "Item" data as shown in sample Output.
Thanks in advance.