Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
i have table name mytable
has two column called clmnA, clmnB
values
1,0
2,1
3,2
5,4

1 is connected to no 0
2 is connected to no 1
3 is connected to no 2
and so on.....

i need to select where clmna = 3
and reslut get all connectd values to this number

the result must be 2,1,0

What I have tried:

i dont try any thing to solve this problem
Posted
Updated 26-Aug-20 2:32am
Comments
F-ES Sitecore 26-Aug-20 8:24am    
google "sql recursive join" for ideas.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900