# テーブル同士の連携方法

**URL:** <https://www.nocode-faq.com/t/topic/1539>\
**Category:** Airtable\
**Tags:** ツールの操作方法\
**Created:** [2021 年 5 月 9 日午前 12:58 UTC](https://www.nocode-faq.com/t/topic/1539 "2021-05-09T00:58:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Question\_user](https://avatars.discourse-cdn.com/v4/letter/q/53a042/32.png) [@Question\_user](https://www.nocode-faq.com/u/Question_user)\
**Post date:** [2021 年 5 月 9 日午前 12:58 UTC](https://www.nocode-faq.com/t/topic/1539/1 "2021-05-09T00:58:36Z")

</div>

2つのテーブルをairtable内で作成しました。  
１つ目のテーブルはユーザーのステータス、２つ目のテーブルはユーザーが受講しているレッスンの一覧です。  
そのユーザーのステータスのColumnに金額という項目がはいっています。  
この金額の内訳（つまりどんなレッスンとっているか）がレッスンの一覧として行ごとに入っています。  
これらのテーブル同士を相互にリ結びつけるにはどのように設定すればいいのでしょうか？

つまり、Aのユーザー情報はユーザーステータスのテーブルで、そのAさんは過去にどんなレッスンを月々受講しているのか、という情報を受講しているレッスン一覧でみたいです。

---

<div class="post-metadata">

**Author:** ![Answer\_user](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Answer\_user](https://www.nocode-faq.com/u/Answer_user)\
**Post date:** [2021 年 5 月 9 日午前 12:58 UTC](https://www.nocode-faq.com/t/topic/1539/2 "2021-05-09T00:58:37Z")

</div>

ユーザーが受講しているレッスン一覧が、下記のような構成である場合ですが、

> **[Gyazo](https://gyazo.com/0c8f40e28f400fa0c5a116b2468de539)**

@Tsubasa Miyazaki  
ありがとうございます！  
たとえば、Aさんが今月１万円の売上です。その売上の詳細はこのレッスンの内訳ですよ、だったり、  
Dスタジオごとの売上がこれです。このスタジオの売上の内訳はこのユーザーたちですよ、とかがわかるように設定したいです。Usertableというのは１つのテーブル（ファイル）全体のことを指していますか？GroupでNameで括るという設定はどこで行うのでしょうか？  
あと、Columnに一括で情報をいれる方法を知りたいです。

@akkin  
なるほどですね。  
であれば、  
Lesson tableに参加する人数 と、合計フィールドするフィールドを作れば良いと思います。

> **[Gyazo](https://gyazo.com/57a1bd79381372c84b3bbecd9c80521c)**

参加人数はCountFieldで計算できます

> **[How can I count the number of linked records in a linked record field (column)?](https://support.airtable.com/hc/en-us/articles/215456008-How-can-I-count-the-number-of-linked-records-in-a-linked-record-field-column-)**
>
> To count the number of linked records in a field, you can create another field using the "Count" field type. This will automatically provide the number of records that have been linked to...

集計は、FomulaFieldで計算できます  
Formula field reference

> **[Formula field reference](https://support.airtable.com/hc/en-us/articles/203255215-Formula-field-reference)**
>
> Formulas may involve functions, numeric operations, logical operations, and text operations that operate on fields. For an overview of formula fields, please refer to the Guide to Formula, Lookup, ...

Usertableというのは１つのテーブル（ファイル）全体のことを指していますか？  
→Usertableは、１つのテーブルをさしてます。  
GroupでNameで括るという設定はどこで行うのでしょうか？  
Filterのとなりの、Groupで行います。

> **[Gyazo](https://gyazo.com/da5491c404254ece31ae449b8888c61b)**

操作動画

> **[Gyazo](https://gyazo.com/5a1fa253a91c8a592243d25a3c7bddbe)**

あと、Columnに一括で情報をいれる方法を知りたいです。  
一発で入れる方法は、私も知らないのですが、Create Table でCSVで一括インポートができるので、インポート後に対象テーブルに  
コピペする方法だと大丈夫です。

> **[Gyazo](https://gyazo.com/5ae381cfc70e0599975b2a4a9527ed83)**

これらのテーブル同士を相互にリ結びつけるにはどのように設定すればいいのでしょうか？  
Usertableに対して、  
Link to Another Fieldでlesson一覧をリンクさせます。  
その上で、GroupでNameで括れば できます。

> **[Gyazo](https://gyazo.com/4c9d0417a3fb10e3e382fab902dedcdd)**
