I have a processDependency table which has thousands of records. Sample records are given below:
Proc DepProc
P1 P2
P2 P3
P3 P4
P4 P5
P6 P7
So when I run the SQL query I should be able to derive below:
P1-P2-P3-P4-P5
P6-P7
Can anyone help me out with a generic SQL.