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 -

c# - ItextSharp font color issue in ver 5.5.4+ -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -