title: How can I design a database schema to store data which is having n-ary Tree format
body: <p>How can I store data in database which is having the relationship like a n-ary tree. For example consider the scenario in the following diagram:
  (All the nodes are having the same data objects.)</p>
  
  <pre><code>                             c1
                      /  |     |      \
                    c11  c12  c13      c14
                   / |     |    |     /    |    |   \
                c111 c112 c121 c131  c141 c142 c143 c144
                / | \  |   /|\\ / \   |    / \  
  </code></pre>
  
  <p>Please suggest the best option to store the data having the above format in a database. Please suggest considering the database queries so that the information can be easily loaded in the memory.</p>