Unlike other products, our “Lookup” is not a field type. Lookup is considered a special action here. When you create a lookup, you’re actually creating a field of the same type as the field you’re referencing, with data obtained from the linked records of that field.
Relationship Between Lookup Fields and Link Fields
To use lookup fields, you first need to create a link field to connect two tables. Once the link is established, you can use lookup fields in one table to reference any field from the other table.How to Create a Lookup Field
Ensure you have created a link field between the two tables you want to connect. In the table where you want to add the lookup field, select “Add Field,” then choose “Lookup.” Based on the existing link field, select the source table and specific field you want to reference.Lookup Field Use Cases and Examples
Consider the following bookstore scenario: First, we have two tables: “Author Details” and “Books.”Author Details Table
Author Name | Birth Year |
---|---|
Steve McConnell | 1960 |
Martin Fowler | 1963 |
Erich Gamma | 1961 |
Books Table
Book Title | Author Link | Author Birth Year (Lookup Field) |
---|---|---|
“Code Complete” | Steve McConnell | 1960 |
”Refactoring” | Martin Fowler | 1963 |
”Design Patterns” | Erich Gamma | 1961 |
- For “Code Complete”, we selected author Steve McConnell, whose birth year is 1960, so the author birth year lookup field shows 1960.
- For “Refactoring”, we selected author Martin Fowler, whose birth year is 1963, so the author birth year lookup field shows 1963.
- For “Design Patterns”, we selected author Erich Gamma, whose birth year is 1961, so the author birth year lookup field shows 1961.