0

I feel like this is a question that has been asked before, but I couldn't find an answer. Apologies if it has been asked before.

What is a a good way to organize data regarding similar but different objects? For example, say I have a couple entries about reptiles. I have some tortoises and some komodo dragons. Great - both are cold-blooded and have 4 legs. However, different tortoises have different shell colors. This value doesn't mean anything to komodo dragons, which don't have shells. Does it make more sense to group them in a single table based on the fact that they have similar attributes, or to separate them based on the fact that they have exclusive attributes?

green_meep
  • 119
  • 8

1 Answers1

0

Maybe I will use inheritage attributes maybe lizard table parent and another one with shell and another with the difference was the color of the shell, this for the tortiose.

For the komodoro dragons I will make another table from lizard, animals with no shell for example, which his own characteristics.

I think that this is a good explain to how to do:

How can you represent inheritance in a database?

And this.

This will be another how to:

How To: Model Inheritance in Databases

To do your model with inheritage.

Cheers.

Antonio.

Community
  • 1
  • 1
  • Thanks for the answer and edit, Antonio. I will accept your answer if philipxy does not post his answer within 24 hours. – green_meep Jul 04 '16 at 04:30