Hello there
I have one table A.
Table A
PathIndex, OrderIndex, NodeID
1,0,Node1
1,1,Node2
1,2,Node3
2,0,Node1
2,1,Node4
2,2,Node5
3,0,Node6
3,1,Node7
3,2,Node8
4,0,Node1
4,1,Node2
4,2,Node9
5,0,Node10
5,1,Node2
5,2,Node11
6,0,Node11
6,1,Node3
6,2,Node2
I would like with one statement to filter on a certain node in OrderIndex = 1 and return the OrderIndex = 0 of the same PathIndex, and I would like this collection to be unique.
If I were to get Node2 in OrderIndex=1 I should get the following collection back.
1,0,Node1
5,0,Node10
Could someone please point me in the write direction?