# The difference between these two ways of joining tables in query panel?

**URL:** <https://community.wandb.ai/t/the-difference-between-these-two-ways-of-joining-tables-in-query-panel/8256>\
**Category:** W&B Help\
**Tags:** dashboard, wandb\
**Created:** [October 27, 2024, 3:58pm UTC](https://community.wandb.ai/t/the-difference-between-these-two-ways-of-joining-tables-in-query-panel/8256 "2024-10-27T15:58:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuhuawei](https://avatars.discourse-cdn.com/v4/letter/y/f05b48/32.png) [@yuhuawei](https://community.wandb.ai/u/yuhuawei)\
**Post date:** [October 27, 2024, 3:58pm UTC](https://community.wandb.ai/t/the-difference-between-these-two-ways-of-joining-tables-in-query-panel/8256/1 "2024-10-27T15:58:58Z")

</div>

Hi, I noticed that there are two ways of joining tables in query panel.

> **[Query Panel Examples](https://wandb.ai/luis_team_test/weave_example_queries/reports/Weave-queries---Vmlldzo1NzIxOTY2?accessToken=bvzq5hwooare9zy790yfl3oitutbvno2i6c2s81gk91750m53m2hdclj0jvryhcr)**
>
> Learn how to build your own Query Panels. Made by Luis Bergua using Weights & Biases

What are the differences in data structure between the concatenated tables obtained from these two methods? In my understanding, the first method can easily concatenate tables from different runs, but additional column names must be added to identify fields from different tables. If there are many tables to concatenate, the column names of the new tables will increase several times, right? This will be detrimental to subsequent filtering and other operations. The second method, except for the join column, transforms all other columns into a data type similar to a list, making the structure of the new table more concise and clear, without increasing column names, and allowing for comparison between different tables. However, when I try to convert it to combined plot, and represent different run data with different colors, I don’t know what to fill in the Color field. I tried using “row.run” (from the example you provided), but sometimes it doesn’t work.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/1/1c88e73321b5317236e84bc661721a43f3a5de22.png)

> **[Query panels | Weights & Biases Documentation](https://docs.wandb.ai/guides/app/features/panels/query-panel/)**
>
> Some features on this page are in beta, hidden behind a feature flag. Add \`weave-plot\` to your bio on your profile page to unlock all related features.

What is the data type of ‘row’? Why is row.run effective in your example? How to distinguish data from different runs in my example?

BTW, I tried this first joining method, it didn’t work for me. Is there something wrong?
