Store children in database preserving information about their order

Posted by GUZ on Stack Overflow See other posts from Stack Overflow or by GUZ
Published on 2010-03-16T11:27:27Z Indexed on 2010/03/16 11:36 UTC
Read the original article Hit count: 229

I am designing database tables for a master-detail scenario. The specific requirement is that it is necessary to store information about the order of children. I see some possible solutions (like adding a column representing a position in the sequence, or a column with foreign key to the previous child) but I would like to know the best practices how to solve such problems.

Best regards
Lukasz Glaz

© Stack Overflow or respective owner

Related posts about database-design

Related posts about best-practices