title: Relationship between entities in database
body: <p>When describing relationships between entities have I understood it correct if it the occurrence of a primary key in the table, lets say A has in table B that determines whether it is a one-to-one, one-to-many and so on?</p>
  
  <p>If table B has an attribute with foreign keys, and each row in table B has a reference to the same table in row A, then this is a one-to-many relationship, correct?</p>
  
  <p>Thanks in advance</p>