# Database replationship between RG

**URL:** <https://forum.bubble.io/t/database-replationship-between-rg/151586>\
**Category:** Database\
**Created:** [May 17, 2021, 9:54am UTC](https://forum.bubble.io/t/database-replationship-between-rg/151586 "2021-05-17T09:54:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sejinpk](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@sejinpk](https://forum.bubble.io/u/sejinpk)\
**Post date:** [May 17, 2021, 9:54am UTC](https://forum.bubble.io/t/database-replationship-between-rg/151586/1 "2021-05-17T09:54:13Z")

</div>

Hi, Bubblers!~ I’m new to bubble and getting struggling with the below problem and don’t understand the logic…

If I make the table like

ITEM

- name (txt)  
ITEM-VARIANT
- Color Name (txt)
- Item (Item)

 ![variants](https://us1.discourse-cdn.com/bubble/original/3X/e/d/ed9e1a0c7cbec30c42b5dfc2bef1394752b30241.jpeg)

When choosing one of item in RG in Item, only show reference variants in RG…

Any help is much greatly appreciated…

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [May 17, 2021, 9:57am UTC](https://forum.bubble.io/t/database-replationship-between-rg/151586/2 "2021-05-17T09:57:17Z")

</div>

Hey there @sejinpk,

You can have something like:

A list of variants in your item, then when a cell in your repeating group of items is clicked, you can show a second repeating group that does a search for a custom state which lists all the variants related to the item pressed on.
