# Pack Newbie - Nested Tables!

**URL:** <https://connect.superhuman.com/t/pack-newbie-nested-tables/47984>\
**Category:** Making Packs\
**Created:** [April 13, 2024, 2:30am UTC](https://connect.superhuman.com/t/pack-newbie-nested-tables/47984 "2024-04-13T02:30:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaun\_McLean1](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/shaun_mclean1/32/9180_2.png) [@Shaun\_McLean1](https://connect.superhuman.com/u/Shaun_McLean1)\
**Post date:** [April 13, 2024, 2:30am UTC](https://connect.superhuman.com/t/pack-newbie-nested-tables/47984/1 "2024-04-13T02:30:22Z")

</div>

Hi All! I’m a long time Coda user and just started playing around with Packs! I’ve seen some people make some really great things and I’m wondering how to do the following…

I’d like to take the following JSON and create two tables. A color table, and a fruit table. I want to create a sync table for each and I want to see a relationship between the two tables.  
{  
“red”: [“apple”, “cherry”, “strawberry”],  
“orange”: [“orange”, “peach”, “mango”],  
“yellow”: [“lemon”, “banana”, “pineapple”],  
“green”: [“kiwi”, “lime”, “grapes”],  
“blue”: [“blueberry”, “grape”],  
“purple”: [“plum”, “grape”]  
}

For instance, I want to be able to load the color table, and see all of the fruits in it. Then when the fruit table loads, the fruits should all be linked to a color in the color table.

I hope this makes sense! Any insights on where to get started would be greatly appreciated. I went through the tutorials but I didn’t see much on nested tables.

Thank you!!

---

<div class="post-metadata">

**Author:** ![Shaun\_McLean1](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/shaun_mclean1/32/9180_2.png) [@Shaun\_McLean1](https://connect.superhuman.com/u/Shaun_McLean1)\
**Post date:** [April 13, 2024, 2:34am UTC](https://connect.superhuman.com/t/pack-newbie-nested-tables/47984/2 "2024-04-13T02:34:23Z")

</div>

Nevermind! Looks like it’s here:

> **[Add sync tables - Coda Pack SDK](https://coda.io/packs/build/latest/guides/blocks/sync-tables/)**
>
> Create tables of data that automatically sync in records from an external data source.

---

<div class="post-metadata">

**Author:** ![Eric\_Koleda](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/eric_koleda/32/50286_2.png) [@Eric\_Koleda](https://connect.superhuman.com/u/Eric_Koleda)\
**Post date:** [April 13, 2024, 2:19pm UTC](https://connect.superhuman.com/t/pack-newbie-nested-tables/47984/3 "2024-04-13T14:19:30Z")

</div>

Yes, you are on the right track! To create two tables that link to each other requires using reference schemas, which is discussed on that page.
