Note that there are some explanatory texts on larger screens.

plurals
  1. PO2 Database Design Questions. hierarchy tree
    primarykey
    data
    text
    <p>1.) I have a DB where each entry represents a task. And out of several dozens or even a hundred of task, there will be a special task (which is a milestone)<br> So, in this case, I have very few entries that requires an extra field to separate them from the majority.</p> <p>I don't want to create a second table, because this is the only fields that makes these milestone stone special, they share a lot of other fields with regular tasks entries.</p> <p>Should I create another field just to hold a few TRUEs while the rest are FALSE by defaul</p> <p>2.) For each of those tasks, it has a variable number of performers (depending on user input) (To further things, each performer has multiple sub-performers of its own.) So I essentially am using a DB to describe a TREE structure.The way I have it now is, I will have 5 copies of the same task info if there are 5 performers, and occupy 5 entries. Is this the way to go if I'm not going to have more than 10,000 entries (incl. copies) in my DB</p> <p>Thank you</p> <p>This should clarify it</p> <ol> <li><p>Task1 (this is a milestone task)</p> <ul> <li>performer1 <ul> <li>sub-performer ID=21</li> <li>sub-performer ID=542</li> </ul></li> <li>performer2</li> </ul></li> <li><p>Task2 (this is not a milestone task)</p> <ul> <li>performer2 <ul> <li>sub-performer ID=231</li> </ul></li> </ul></li> </ol> <p>Subperformer and performer are completely different group. No overlap at all. Subperformer are the group that provide inputs to performer, so performer can complete the task they're assigned to.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload