Link, Lookup & Rollup

Relational columns let you connect data across multiple tables, like a lightweight relational database.

Creates a relationship between two tables.

Relationship types

TypeDescriptionExample
One-to-OneEach record in Table A links to exactly one in Table BEmployee → Laptop
One-to-ManyOne record in A links to many in BCompany → Employees
Many-to-OneMany records in A link to one in BEmployees → Department
Many-to-ManyRecords in both tables can link to multiple in the otherStudents ↔ Courses

Setting up

  1. Add a Link column
  2. Select the target table
  3. Choose the relationship type
  4. Records show a link picker; click to search and select linked records

Lookup Column

Pulls values from linked records into the current table.

How it works

  1. You have a Link column connecting to another table
  2. Add a Lookup column
  3. Select the Link column as the source
  4. Select which field from the linked table to display
  5. The value auto-populates from the linked record

Example

ContactCompany (Link)Company Size (Lookup)
Jane DoeAcme Corp →250 employees
John SmithGlobex →50 employees

"Company Size" is a Lookup that pulls the "Size" field from the linked Company record.

Rollup Column

Aggregates values from multiple linked records.

How it works

  1. You have a One-to-Many or Many-to-Many Link column
  2. Add a Rollup column
  3. Select the Link column
  4. Select which field to aggregate
  5. Choose the aggregation function

Functions

FunctionWhat it doesExample
CountNumber of linked recordsCompany has 5 contacts
SumTotal of numeric fieldTotal revenue from all deals
AverageMean of numeric fieldAverage deal size
MinLowest valueEarliest start date
MaxHighest valueLargest deal

Example

CompanyDeals (Link)Total Revenue (Rollup: Sum)Avg Deal (Rollup: Avg)
Acme Corp3 deals →$45,000$15,000
Globex1 deal →$8,000$8,000
Tip

Use Link + Lookup + Rollup to build a CRM: Companies table linked to Contacts table linked to Deals table. Rollup total deal value on the Company record for pipeline visibility.

Note

Formulas in TinyTables currently support 4 functions (concatenate, lower, upper, average). For complex calculations, use Rollup columns or TinyWorkflows with database nodes.