4 ms·
Two is quite relevant for relationships
by grensley 4y ago
Two is quite relevant for relationships
- ChickeNES 4y agoWell, if you ignore polyamory and polygamy...
- layer8 4y agoYou can have n-ary relationships. Relational databases are built on that.
- grensley 4y agoWhat are the columns in a relational table like that?
- layer8 4y agoNot sure what you mean. A table with N columns corresponds to an N-ary relation. The rows contained in the table are the tuples contained in the relation. Table = relation. That's why it's called a relational database. See also this example in Wikipedia of a ternary relation: https://en.wikipedia.org/wiki/Finitary_relation#Example https://en.wikipedia.org/wiki/Finitary_relation#Example Another example: If you have a table (SSN, Name, DateOfBirth), then that corresponds to the relation "person with SSN x has name y and date of birth z". In that case it's a relation between SSNs, names, and dates.
- grensley 4y agoVery fair, thanks for the example.