# Best Practices to link 2 Data Tables?

**URL:** <https://forums.unrealengine.com/t/best-practices-to-link-2-data-tables/1257424>\
**Category:** Blueprint\
**Tags:** datatable, Structure, unreal-engine\
**Created:** [August 11, 2023, 3:44am UTC](https://forums.unrealengine.com/t/best-practices-to-link-2-data-tables/1257424 "2023-08-11T03:44:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ednik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ednik](https://forums.unrealengine.com/u/Ednik)\
**Post date:** [August 11, 2023, 3:44am UTC](https://forums.unrealengine.com/t/best-practices-to-link-2-data-tables/1257424/1 "2023-08-11T03:44:15Z")

</div>

Hello.  
Is there any way I can link two Data Tables / Structures?

Let’s say I want to create a Structure for Items and Weapons

Instead of having a S\_Item and DT\_Items like this…

S\_Item:  
Text - Name  
Texture2D - Icon  
Bool - IsWeapon?  
Float - Damage (only if IsWeapon? == true)

… I want to have an S\_Item and S\_Weapon and two seperate Data Tables that are linked together in some way. What would be the best way to implement something like this, since I can’t find any tutorial on this topic. In my opinion there are so many more features Unreal Engine could add to Data Tables, since they can be so useful 😕

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 11, 2023, 9:16am UTC](https://forums.unrealengine.com/t/best-practices-to-link-2-data-tables/1257424/2 "2023-08-11T09:16:52Z")

</div>

> [@Ednik](#):
>
> In my opinion there are so many more features Unreal Engine could add to Data Tables, since they can be so useful

Oh boy, agreed! Wholeheartedly, too.

> link two Data Tables / Structures?

A `struct` can hold a `Row Name` you use to look up values in another `Data Table`.

* * *

Epic does not want you to know this 😇 , but you can reference a DT in structs:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/a/12a66e52e5cc8e1ee6804ab0a3da917016f89ca3.png)

And then make another DT out of those; for the more complex scenarios.

---

<div class="post-metadata">

**Author:** ![Ednik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ednik](https://forums.unrealengine.com/u/Ednik)\
**Post date:** [August 11, 2023, 1:43pm UTC](https://forums.unrealengine.com/t/best-practices-to-link-2-data-tables/1257424/3 "2023-08-11T13:43:57Z")

</div>

Thank you very much, how did I not know this???
