Skip to content

Linked records: connect two tables

A link field holds records, not text. Creating one creates its mirror on the other table, and a field of typed names becomes links in one pass.

Updated November 2026

A link field's cell holds other records, not text. In the demo shop, an order links to the customer who placed it and to the plants inside it, and the customer's record in turn lists every order. A link in Tabla is two-way: it is one relationship that you can read from both ends.

Lookup and rollup fields both work through a link, which is why this field tends to come first. If the idea itself is new to you, relationships, explained starts further back.

Make one

  1. Add a field and choose Linked records.
  2. In Links to, pick the other table. Links stay within one database.
  3. Set Allow many. Off links one record per cell (an order has one customer), and on links many (an order holds many plants).
  4. Mirror name is the name of the field that appears on the other table. If you leave it blank, it takes this table's name, so a Customer link on Orders puts an Orders field on Customers. The demo's Plants link names its mirror "Ordered in".

Creating the field creates both sides at once. The mirror always allows many. Even if fifty orders each link one customer, that customer's mirror holds fifty orders.

The picker has three more settings, and you can edit all of them later. Filter and Limit to a view decide which records it offers (below). Card fields puts up to four fields on the picker's cards, or three plus a photo. Which table the field links to, and whether it links one or many, is fixed at creation. When you edit the field later, Links to still names the table, but you can't change it. To change either setting, delete the field and add a new link.

From a field you already have

Often the relationship is already written down as text. A spreadsheet comes in, and the customer's name is in an ordinary Customer name field on Orders. Tabla can build a link from those values, matching them against the records in the other table, in a single pass.

Do this first, on the other table. A value can only match whatever names a record, and what names a record is that table's display field. So Customers' display field has to be the field holding those names, and it has to be plain text. You set it on the table the records are in, not on the table with the names typed in: on Customers, click the arrow on that field's header and choose Use as display field. This step is the easiest one to miss, and everything below depends on it.

Then, on the field that holds the typed names:

  1. Click the arrow on the field's header and choose Link to another table…. You can also open Edit field… and pick Linked records, which opens the same pane.
  2. In Match against, pick the table whose records these values name.
  3. Link field name is what the new field is called. If you leave it blank, it's the original field's name and the word "link" (or "link 2" and so on if that name is taken).
  4. Set Allow many. When it's off, the entire cell is one value. When it's on, a comma or semicolon followed by a space cuts a cell into several values and each one gets its own link. "Monstera deliciosa, Golden pothos" is two values, and so is a company name with a legal suffix, "Genentech, Inc.", which is why the setting is off by default. 1,234 stays one value.

Then click Create link field.

Nothing is converted. A new link field appears beside the original field, and the original is left exactly as it was, with the values you matched from still in it. Afterward Tabla offers Delete Customer name next to Keep it, so removing the original is a separate step that you take once you've seen the result. When the original is the table's display field (the one that names every record), it is kept, because deleting it would leave every record unnamed. To delete it, choose Use as display field on another field first.

Before it runs, the pane counts what will happen, using your own data:

  • how many records hold a value (those are the ones that get a link)
  • how many values already name a record in the other table
  • how many name nothing yet, because a record is created there for each one
  • how many name more than one record, where the oldest record with that name is the one linked

Matching ignores capitals and spaces around the value. fiddle-leaf FIG, with or without a stray space at either end (including the no-break spaces and line breaks a spreadsheet leaves behind), finds Fiddle-leaf fig. Records in this table's trash are linked to what already matches, so one that is restored later comes back with its link already made. A name found only in the trash creates nothing. When the other table's records are named by a formula, new ones can't be made from a name, so the pane says so before anything runs if any value names nothing there yet. A single run creates up to 20,000 new records. For more than that, import the records first and link the field after.

The mirror follows the usual rule, which is that the field appearing on the other table takes this table's name. A link built on Orders puts an Orders field on Customers, or Orders 2 if that name is already taken there.

With the link in place, a lookup can bring the rest across. Point one through the new link at the customer's Email, and every order shows the address. The address still belongs to the customer record, and it is still right when it changes.

In the grid

Linked records are drawn as outlined pills, which look different from a select's filled chips. An outline means a record that opens. The first click selects the cell. On the selected cell:

  • a chip opens that record in a panel over the grid, and edits there are saved to its own table
  • the ✕ on a chip unlinks it
  • the + at the cell's edge, the +N overflow counter, Enter, or a double-click open the picker. On a phone, open the record and use the link field there, where the picker fills the screen.

A grid can also be grouped by a link field (bookings by property, tasks by client), which is usually the fastest way to read a table whose records each belong to a record in another table. A record whose cell holds several links is grouped under the full set, as one group. Each group's title shows its linked records as the same tinted chips the cells use, and + Add record under a group creates a record already linked to them.

You can also paste into a link cell. The pasted text is matched against the linked table's display field by the same rule as above: capitals and spaces around the value are ignored, the first record is used when two share a name, and a value that names nothing creates a record there. On a link that allows many, a comma or semicolon followed by a space separates one cell into several values. On a single link the entire cell is one value. Pasting works on one cell or on every cell of the field at once, and the rest of the paste rules are in pasting into the grid.

The picker

The link picker over an order's Plants field: “Links to Plants” under the title, then the search box and Filter button, the two linked plants in the Linked section, and the available plants below as cards with photos.

The picker's title is the field's name, and the line under it says which table the records come from (Links to Plants). The search box names that table too. Below them the picker has two sections. Linked shows everything already in the cell. It shows all of it whatever you search for, so a linked record is never hidden. Available lists the rest of the target table as cards, with the display field as the title, your chosen card fields under it, and the first attachment field as a thumbnail.

  • Search runs on the server against the entire linked table, not only the loaded page, and it looks at more of each record than its name. It matches the target's text fields, its select values by the label you read, the people its member fields name (by name as well as email), and the names of the records it links to, one step across. It doesn't match numbers, dates or attachments, and searching explains why.
  • Records the term names come first. A card that came up for some other reason says so underneath ("Matched in Status"), so you can see why a result you weren't expecting is there.
  • Filter builds conditions on the linked table's fields, in the same way as view filters, on top of any filter set on the field itself.
  • On a single link, picking replaces the value and closes. On a multiple link, picking adds and the picker stays open.
  • Type a name that matches nothing and the picker offers Add record "Fiddle-leaf fig" to Plants. That creates the record with that name and links it in one step. The offer only appears when the target's display field is plain writable text.

Limit what the picker offers

A link field can offer only some of the other table's records. Open Edit field… on the link and use Filter, Limit to a view or both.

Filter takes conditions on the linked table's fields, built the same way as a view filter. Only records that match can be picked.

A condition can also compare with a field of the record you're editing. Click ⇄ at the end of a condition and its value becomes "this record's" field. Say a Daily log table has a Project link and a Contractor account link, and each contractor account belongs to one project. On the Contractor account field, the condition Project · has any of · this record's Project makes the picker offer only the accounts of the log's own project. Pick another project on the log and the picker offers that project's accounts.

These can be compared:

  • a link with a link to the same table
  • text with text, a number with a number, a checkbox with a checkbox, a person with a person
  • a date with a date, by calendar day in the database's time zone
  • a single select with a single select, and for is any of or a multiple select, either kind of select. Choices are matched by name, so each table keeps its own list.

While the field it compares with is empty, a condition doesn't narrow the list. A log with no project yet offers every account, and the picker says "Showing every record until Project is filled in." In a filter joined with or, one empty field means the whole list waits for it.

Limit to a view picks one of the linked table's views, and the picker offers only the records that view shows, together with the filter.

A limit never removes a link. When a log moves to another project, the account it already had stays linked. The picker shows it under Linked with the note "Outside this field's filter", and you can unlink it there. The limit only decides what the picker offers, so pasting into the cell, an import and the API can still link any record.

While a filter compares with a field, that field can't be deleted or given another type, and a view that a link is limited to can't be deleted. Change the link's settings first.

Picking a record that is already linked

A single link means at most one, ever. So if you're on a customer's Orders mirror and you pick an order that already belongs to another customer, that order moves. It can't be in two places when its own side links one. The picker always tells you first: such a card says, in wine, "Linked to Nour El-Sayed — picking moves it here". The same rule holds over the API. Assigning from the order's own side is the same operation seen from the other end, so setting ORD-1041's customer to Karim removes it from Nour.

When a linked record is deleted

When you trash a record it disappears from every link cell that pointed at it, immediately. If you restore it from the trash within 7 days it returns with its links intact, because trashing never touched the connections. Once the trash empties, the record and its connections are gone for good, and the cell holds one fewer record. Deleting a linked record never deletes the records linked to it.

Deleting the link field sends both sides to the trash for seven days, with every connection intact, and Restore brings them back. The delete is refused, by name, while a lookup or rollup still depends on the link.

Deleting the table on the other end works the same way for the entire field. The link field goes blank for the seven days that table is in the trash, then fills back in with the same records if the table is restored, because nothing between the two tables was cut. If the seven days run out, both sides of the link field go too.

Over the API

A link cell reads as a list of {id, display} pairs. The display value comes from the target's display field, so a client never needs a second call to label a chip:

"Customer": [{ "id": "rec_gs8683t5vvcn", "display": "Nour El-Sayed" }],
"Plants": [
  { "id": "rec_y4crk8w9hc3e", "display": "Monstera deliciosa" },
  { "id": "rec_fxnmkz5wjyme", "display": "Golden pothos" }
]

Even a single link reads as a list, so the shape never changes. Writes take a list of rec_… ids (or the objects a read returned, unchanged). Two ids written to a single link are refused:

{ "error": { "code": "bad_request",
  "message": "Field \"Customer\" links a single record; got 2." } }

Writing either side updates both, and both records' updated_at move. The rest of the write rules are in /docs/api.

The picker's limit is in the field's options, and PATCH /api/fields/:id sets it. A condition whose value is { "this_record": "<field>" } compares with that field of the record being edited, and picker_view_id names the view:

{ "options": {
  "conditions": { "join": "and", "conditions": [
    { "field": "Project", "op": "has_any", "value": { "this_record": "Project" } }
  ] },
  "picker_view_id": "viw_3k9tq2m7xw4p"
} }

Either side can be named by name or by id, and Tabla stores both as ids. A write through the API isn't checked against the limit.

About Tabla

Tabla is a no-code database with Postgres underneath. Every feature is on every plan, you get a million records per database, and you can export your whole database in one file any day.

More guides