# Is there any way to put a database within a database

**URL:** <https://forum.wixstudio.com/t/is-there-any-way-to-put-a-database-within-a-database/38461>\
**Category:** Ask the community\
**Tags:** wix-members-area, question, code\
**Created:** [September 3, 2020, 6:11pm UTC](https://forum.wixstudio.com/t/is-there-any-way-to-put-a-database-within-a-database/38461 "2020-09-03T18:11:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman04shah](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/aman04shah/32/11930_2.png) [@aman04shah](https://forum.wixstudio.com/u/aman04shah)\
**Post date:** [September 3, 2020, 6:11pm UTC](https://forum.wixstudio.com/t/is-there-any-way-to-put-a-database-within-a-database/38461/1 "2020-09-03T18:11:51Z")

</div>

I am using the login bar provided by wix so it created a bunch of members for my website. However, my site is similar to eBay where it connects buyers and sellers. I want to have a ‘my listings page’ where it shows everything you have put for sale. How do I do this, because it seems like I need another database about who sold which item within the profile database. Let me know if it makes sense what I’m asking.

---

<div class="post-metadata">

**Author:** ![\_luke](https://avatars.discourse-cdn.com/v4/letter/_/51bf81/32.png) [@\_luke](https://forum.wixstudio.com/u/_luke)\
**Post date:** [September 3, 2020, 8:18pm UTC](https://forum.wixstudio.com/t/is-there-any-way-to-put-a-database-within-a-database/38461/2 "2020-09-03T20:18:40Z")

</div>

Make a second database ’For sale’ or something. Every for sale item have the ID added to a json object stored in one field associated with a member in the original database. Iterate through the for sale database to list out all item ID’s thag match the IDs you have in the json file.

Its called a one-to-many relationship and you could do some googling for that with mysql databases which is (pretty sure) what wix
