If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Database to manage projects

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-06, 23:07
cardona cardona is offline
Registered User
 
Join Date: Feb 2006
Location: Australia
Posts: 2
Database to manage projects

Hi all (my first post!),

I have been requested to design a database (MSSQL 2000), that will "track" projects. There will be "Major" projects, which could have any amount of sub-projects, and these sub-projects could have any amount of sub-sub-projects.

All the projects/sub-projects/sub-sub-projects will have the exact same fields. It wont be overly complicated in regards to fields, i.e date started, status, deadlines, objectives. To me it looks like a single table could do the trick, as all projects/sub-projects/sub-sub-projects will have the same fields.

I'm just trying to get my head around how it all will work, how would you differentiate what was a sub-project or a sub-sub-project's parent?

Thanks for any help you may give

Cheers.
Reply With Quote
  #2 (permalink)  
Old 02-21-06, 03:48
AmitGeorge AmitGeorge is offline
Registered User
 
Join Date: May 2005
Posts: 33
just have a parent project field and leave it 0 for top level projects
Reply With Quote
  #3 (permalink)  
Old 02-21-06, 12:30
leoncat leoncat is offline
Registered User
 
Join Date: Feb 2006
Posts: 7
I agree with George. In addition, you might also want to create a field called MajorProjectID, which would contain the top-level project ID for all projects.

ProjectID, ProjectParentID, MajorProjectID, ProjectName
0, <NULL>, <NULL>, All Projects
1, 0, 1, ProjectA
2, 1, 1, ProjectA1
3, 1, 1, ProjectA2
4, 1, 1, ProjectA3
5, 4, 1, ProjectA3a
6, 4, 1, ProjectA3b
7, 0, 7, ProjectB
8, 7, 7, ProjectB1
9, 8, 7, ProjectB1a
... etc

The MajorProjectID field would allow you to easily query all subprojects within a particular Major Project.
Reply With Quote
  #4 (permalink)  
Old 02-21-06, 18:52
cardona cardona is offline
Registered User
 
Join Date: Feb 2006
Location: Australia
Posts: 2
Thanks guys! I will run with those ideas.

Cheers.
Reply With Quote
  #5 (permalink)  
Old 02-26-06, 07:37
bdimple bdimple is offline
Registered User
 
Join Date: Jul 2003
Posts: 74
More details for Projects in the future ...

Hi,

You might find this Data Model interesting if you come to think about planning Resources on Projects :-
http://www.databaseanswers.org/data_...ning/index.htm

and Staff on Projects :-
http://www.databaseanswers.org/data_...ents/index.htm

B.Dimple
Senior DBA
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On