.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

Presenting Hierarchical structure in sqlserver

Posted By: Jayakumar     Posted Date: July 29, 2009    Points:2   Category :Sql Server
how to present an Hierarchical structure(like MD,Porject manager,program analyst,programmer's) for an company using sqlserver.

guide me

Author: Akhil Raj       [Moderator]      
Posted Date: July 29, 2009     Points: 5   

Nothing big friend create a table named emp with name, designation, TopLevel etc
Then using self join for designation and toplevel. So you can access each one's top level. This is just my idea only.. please check ... after cretae my table data look liike

id name designation toplevel
1 das MD null
2 tass Project Manager 1
3 kiran Program Anslyst 2
4 Jeevan Programmer 3

So jeevan's top level or head is id 3 ie kiran like wise going.. I think it may help u..wait for others guidelines also

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend