sql server - How to create hierarchical table in SQL? -


if there 3 managers , employees shown in photo, how design hierarchical in sql.

enter image description here

i add managerid field not required.

if field not set person 1 of highest managers else works employee person specific id.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -