I am working a program in C# in a Visual Studio development, as a base, I am using SQL Server 2016.
My problem is that I can't determine who is related to whom using the ID of each member.
I am working a program in C# in a Visual Studio development, as a base, I am using SQL Server 2016.
My problem is that I can't determine who is related to whom using the ID of each member.
I assume you have some kind of a Person
table. You would implement a mapping table storing all the relationships between two persons (and the type of the relationship).
The table could look like this:
Id; PersonId; RelatedPersonId; RelationshipType(Id)