Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 DB Design

Author  Topic 

tabreaz
Starting Member

3 Posts

Posted - 2006-03-25 : 05:46:07
hi all,

I have a requirement which must allow users to create objects, the
object
can have any number of subjects. Internally those sub-objects
can contain sub-objects. Similar to our filesystem. A directory can
have sub-dir's so on.

First i view object and sub-objects both as objects, and decided to
store the information in two tables as'

Objects:
ObjectID ObjectName ObjectType ObjectOwner CreationDate Level.....

the level field describe the depth of the object in a tree.
For example the depth SubObj3 below is 3 as


rootObject
SubObj1
SubObj2
SubObj3

SubObjects:
ObjectID SubObjectID

Can someone help me to tune this table structure.

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-03-25 : 06:14:19
you can check out for some of the articles on the SQL teams

http://www.sqlteam.com/searchresults.asp?SearchTerms=hierarchy+

Hope this helps you for making the proper database design.

If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.
Go to Top of Page
   

- Advertisement -