# Relational Lookup in SQL Postgres

**URL:** https://community.glideapps.com/t/relational-lookup-in-sql-postgres/71071
**Category:** Ask for Help
**Created:** [February 22, 2024, 8:43pm UTC](https://community.glideapps.com/t/relational-lookup-in-sql-postgres/71071 "2024-02-22T20:43:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![AlphaBCD](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alphabcd/32/56402_2.png) [@AlphaBCD](https://community.glideapps.com/u/AlphaBCD)
#### Post date: [February 22, 2024, 8:43pm UTC](https://community.glideapps.com/t/relational-lookup-in-sql-postgres/71071/1 "2024-02-22T20:43:26Z")

</div>

Hi -

Is there a workaround to be able to lookup or build some sort of relation table with Postgres and a Glide Table? Is there a work around anyone has?

Kind Regards

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/3/832d1bc3d855f9266a958d6218ac390467e792d1.jpeg)

---

<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: [February 22, 2024, 9:18pm UTC](https://community.glideapps.com/t/relational-lookup-in-sql-postgres/71071/2 "2024-02-22T21:18:47Z")

</div>

Is your relation a single or multiple relation?  
It should work for a single relation, I believe.

Oh, wait. It’s a query. Try using a single value column instead of a lookup.

---

<div class="post-metadata">

### Author: ![AlphaBCD](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alphabcd/32/56402_2.png) [@AlphaBCD](https://community.glideapps.com/u/AlphaBCD)
#### Post date: [February 23, 2024, 2:26am UTC](https://community.glideapps.com/t/relational-lookup-in-sql-postgres/71071/3 "2024-02-23T02:26:37Z")

</div>

Thank you!! That seemed to work. Single Value.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/6/7635a95b75bc5f862510417b6b7bfd060d6f2759.jpeg)

---

<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: [February 23, 2024, 2:44am UTC](https://community.glideapps.com/t/relational-lookup-in-sql-postgres/71071/4 "2024-02-23T02:44:47Z")

</div>

Yeah. I haven’t used SQL data sources with Glide yet, but I believe that many of the same limitations that apply with Glide Big Tables also apply. One of those is that you can’t do a lookup through a multiple relation or query. If you’re just wanting a specific value (as opposed to an array), then a single value is the way to go.

---

<div class="post-metadata">

### Author: ![AlphaBCD](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alphabcd/32/56402_2.png) [@AlphaBCD](https://community.glideapps.com/u/AlphaBCD)
#### Post date: [February 23, 2024, 3:03am UTC](https://community.glideapps.com/t/relational-lookup-in-sql-postgres/71071/5 "2024-02-23T03:03:10Z")

</div>

Thanks Darren. Yeah, learning the limitations as well, but glad to see there was a workaround! Appreciate the help and quick response

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [March 1, 2024, 3:03am UTC](https://community.glideapps.com/t/relational-lookup-in-sql-postgres/71071/6 "2024-03-01T03:03:55Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
