I recently made a simple database for a family member. The database stores individuals and their close family members these include siblings. The issue is, unlike parents, siblings are variable and an individual could have 1 or 12.
A simplified version of my SQL table looks like this:
| name | age | parents | siblings | | | | | | | | | | |
Currently siblings are condensed into a single string and stored into the siblings column with separators.
Example: "john%doe%15 & liam%doe%17 & james%doe%23"
The actual string has 20 odd fields which makes packing and unpacking the string messy. It also makes adding new fields hard as changing the order the data is stored will cause it to load incorrectly. I've looked around and noticed many databases must face the similar issues, is there some kind of industry standard or better method?
Cheers