Skip to content
undb Docs

Reference Fields

Reference

Create a Reference Field

  1. One to one

    A Table record in first table is related to only one record of second table.

    Example: Country has a capital city

  2. One to many

    A Table record in first table is related to more than one record of second table. But second table record maps to only one entry of first table

    Undb refers to this category of relationship as has many. For every has many relation defined, Undb augments belongs to relationship column in the other table automatically.

    Example: Country has many Cities. (other way mapping > City belongs to Country )

  3. Many to many A Table record in first table is related to more than one record of second table; second table record can also map to more than on record of first table.

    EgoDB refers to this category of relationship as many to many. For every many to many relation defined between tables, EgoDB augments many to many relationship column in the other table automatically.

    Example: Film has many Actors. Actor has many Films (works on many films)

Further details of relationship types can be found here.

Relationships between table records can be established by using LinkToAnotherRecord column type. Workflow details are captured below.

Adding a relationship

  1. Create column.

    Click on ā€™+ā€™ button at end of column headers.

  2. Select column type.

    Select Column type as ā€˜referenceā€™ from the drop-down menu.

  3. Update column name.

    Input name in the text box provided.

  4. Choose relationship table.

    Select child table from drop down menu.

  5. Click on ā€˜Createā€™.

Updating linked records

  1. Click cell open the record drawer.

    Click corresponding row - cell.

  2. Select from the option display.

    This is multiple options.

  3. Click on ā€˜Confirmā€™ button, and saving you selected.

  4. Column mapping showing ā€œreferenceā€ relationship.

    Sheet1 ā€˜referenceā€™ Sheet2.

  5. Column mapping for ā€œBelongs toā€ relationship [Automatically updated].

    Sheet2 ā€˜belongs toā€™ Sheet1.

Tree

Document is currently being updated.