mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.7 KiB
40 lines
1.7 KiB
3 years ago
|
---
|
||
3 years ago
|
title: "Lookup"
|
||
2 years ago
|
description: "Understanding Lookup Column!"
|
||
3 years ago
|
---
|
||
|
|
||
3 years ago
|
## Lookup
|
||
3 years ago
|
|
||
2 years ago
|
### Example organization structure
|
||
|
|
||
|
Consider an organization with
|
||
1 year ago
|
- 5 departments (company departments), each department has a team name & associated team code. Each `Team` **has many** `Employees` - relationship has been defined using `LinkToAnotherRecord` or `Links`column
|
||
3 years ago
|
- 5 employees working at different departments
|
||
2 years ago
|
|
||
|
|
||
2 years ago
|
![Screenshot 2022-09-09 at 12 57 32 PM](https://user-images.githubusercontent.com/86527202/189295738-a4197818-f7d7-4769-acad-13b6d05afe7e.png)
|
||
|
<!-- ![Screenshot 2022-09-09 at 12 18 40 PM](https://user-images.githubusercontent.com/86527202/189291758-21c81ec6-7967-45f1-b49c-b3b6f2701edc.png) -->
|
||
|
<!-- ![Screenshot 2022-09-09 at 12 19 16 PM](https://user-images.githubusercontent.com/86527202/189291766-f619078e-0881-4531-a3f8-ede22269f6fc.png) -->
|
||
2 years ago
|
|
||
|
|
||
|
Now, let's explore procedure to retrieve team-code information in Employee table using **LOOKUP** columns
|
||
|
|
||
|
### Configuring a lookup column
|
||
|
#### 1. Add new column : Click on '+' icon to the left of column headers in Employee table
|
||
|
#### 2. Feed column name
|
||
|
#### 3. Select column type as 'Lookup'
|
||
|
#### 4. Choose child table
|
||
|
#### 5. Select child column
|
||
|
#### 6. Click on 'Save'
|
||
|
|
||
|
![Screenshot 2022-09-09 at 12 21 13 PM](https://user-images.githubusercontent.com/86527202/189291720-642a6a96-0b3d-4eaa-886a-20d33a967644.png)
|
||
|
|
||
|
|
||
|
Required information is now populated in the newly created column
|
||
|
|
||
|
![Screenshot 2022-09-09 at 12 26 06 PM](https://user-images.githubusercontent.com/86527202/189291679-09503e32-9146-41fa-b28c-d900f2dc35a4.png)
|
||
|
|
||
|
|
||
|
## Additional notes
|
||
|
- Nested 'Lookup' supported: a Lookup field can have its child column datatype as Lookup (or Rollup).
|