I've been trying for days to design this database. I'm designing it in access then implementing on MYSQL Server as a PHP Web Application.
I have a table:
Members
- MemberID (autoNumber, PK)
- MemberName
- MemberDetails
Members can have many relationships with other members, this may be Child, Parent, Friend, Spouse etc. Looking at one Member, I'd like to be able to create new relationships with existing members and then have that relationship also be visible from the related member without further input. Members should also be able to list all their relationships.
Can you please advise how I should do this? I've tried a few options but none seem to work as intended. I'm comfortable with SQL, I'm just having trouble with the Unary relationship design.
-edit- Also, I forgot to add, this is not going to be able to use INNODB due to server restrictions. Most likely will be MYISAM, though i still want referential integrity :(