# Create a table with one row for each unique value in a column from another table

**URL:** <https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705>\
**Category:** Ask for Help\
**Created:** [May 28, 2024, 9:10am UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705 "2024-05-28T09:10:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Northbridge\_Recruitm](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/northbridge_recruitm/32/68895_2.png) [@Northbridge\_Recruitm](https://community.glideapps.com/u/Northbridge_Recruitm)\
**Post date:** [May 28, 2024, 9:10am UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705/1 "2024-05-28T09:10:45Z")

</div>

Ive read the other topics and thought id made progress, but ive become stuck.

I have a bunch of jobs in one table, with company name in one column. I want to make a second table with a list of the unique company names in it. I was going to use the row number method and then query the column, and grab the Nth value from unique values from the array, but it seems like when using the query column, I cant choose the index in the array i want, and with the lookup table, it limits the array to 100 values (there are 9000 values in this array i need a separate row for).

Can someone offer any solution?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 28, 2024, 12:24pm UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705/2 "2024-05-28T12:24:06Z")

</div>

Can you show screenshots of what you tried? I’ve never heard of the Lookup column being limited. I would think the Row numbering, followed by a Lookup column of Companies, a Unique Elements column to get a unique list from the lookup, and finally a Single Value column to pull individual items from the unique array should work.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 28, 2024, 1:08pm UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705/3 "2024-05-28T13:08:44Z")

</div>

> [@Jeff\_Hager](#):
>
> I’ve never heard of the Lookup column being limited.

I suspect it’s either a Big Table or an SQL data source. Some operations on large data sources are limited to 100 rows.

Assuming that it is, this represents a bit of a challenge. I can’t think of a solution off the top of my head.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 28, 2024, 1:48pm UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705/4 "2024-05-28T13:48:03Z")

</div>

~~@Northbridge_Recruitm - can you tell me roughly how many unique company names you have in the table? If it’s less than 100, and you are working with a Big Table, then I might have a solution for you.~~

Nope, scratch that. the solution I had in mind doesn’t work. I think on it a bit, and if I manage to find a solution I’ll come back.

---

<div class="post-metadata">

**Author:** ![nixkulinax](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nixkulinax/32/73708_2.png) [@nixkulinax](https://community.glideapps.com/u/nixkulinax)\
**Post date:** [May 28, 2024, 3:52pm UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705/5 "2024-05-28T15:52:46Z")

</div>

> [@Northbridge\_Recruitm](#):
>
> but it seems like when using the query column, I cant choose the index

Have you tried to use single value by index instead? Nor you have to have this 9000 rows already in the table, but it can work if I understood correctly.

`As you have single row with array you need, you import it in your big table as first single value:`

 ![Screenshot 2024-05-28 at 12.45.38 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/e/9eaec4a5db336d870414090b1b0b7bba7aeda849.png)

`And then separating this single value for each row by index using single value:`

 ![Screenshot 2024-05-28 at 12.44.41 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/b/fbe8647125c05d5af2189e0188a6cdcba275cf56.png)

---

<div class="post-metadata">

**Author:** ![Northbridge\_Recruitm](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/northbridge_recruitm/32/68895_2.png) [@Northbridge\_Recruitm](https://community.glideapps.com/u/Northbridge_Recruitm)\
**Post date:** [May 30, 2024, 1:55am UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705/6 "2024-05-30T01:55:13Z")

</div>

It is a big table.

The table has 50,000 rows, which is why i chose a big table. Is there anything preventing me from creating the same in a standard Glide table then and doing it that way? Wasnt sure what the row limits were between a standard glide table and a glide big table.

---

<div class="post-metadata">

**Author:** ![Northbridge\_Recruitm](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/northbridge_recruitm/32/68895_2.png) [@Northbridge\_Recruitm](https://community.glideapps.com/u/Northbridge_Recruitm)\
**Post date:** [May 31, 2024, 1:25am UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705/7 "2024-05-31T01:25:22Z")

</div>

The issue is that of the 50,000 jobs, there are about 9000 companies featured, but these companies are included in a total list of about 60,000 companies. I was trying to avoid having to put all of them in a table, and instead limit it to only the 9000 that I needed.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 31, 2024, 5:08am UTC](https://community.glideapps.com/t/create-a-table-with-one-row-for-each-unique-value-in-a-column-from-another-table/73705/8 "2024-05-31T05:08:02Z")

</div>

I think your best option is to move the data to an SQL data source. Then it’s just a simple query.
