sql server - displaying column based on value of another column -


there table this:

parent | child 1      | 11 11     | 12 11     | 13 12     | 14 12     | 14 

if pass 1, should return ‘1’ children’s: 11, 12, 13, 14

you have @ recursive queries using cte. links topic:


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -