0

I need to write a sql statement that find all sub records which has many level meaning the parent record has 2nd level and 3rd level child records tying to the parent organization. So far I wrote

SELECT *
  FROM tblOrganization
  where Parent_Org_ID = '11111'

How can I write a sql statement that will give me all the child records (2nd, 3rd level so on) tying to the parent ID record?

Thanks

Doon
  • 19,719
  • 3
  • 40
  • 44
user1250264
  • 897
  • 1
  • 21
  • 54

1 Answers1

-3

You will need to look for an alternative to Oracle Connect By prior in SQL Server, the following link answers your requirement.

Simulation of CONNECT BY PRIOR of ORACLE in SQL SERVER

Community
  • 1
  • 1
Vicky21
  • 95
  • 5