# The Foreign Key not display correct value seleted

**URL:** <https://community.nocodb.com/t/the-foreign-key-not-display-correct-value-seleted/1831>\
**Category:** Self-Host\
**Created:** [April 26, 2025, 9:05am UTC](https://community.nocodb.com/t/the-foreign-key-not-display-correct-value-seleted/1831 "2025-04-26T09:05:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thanhlc](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@thanhlc](https://community.nocodb.com/u/thanhlc)\
**Post date:** [April 26, 2025, 9:05am UTC](https://community.nocodb.com/t/the-foreign-key-not-display-correct-value-seleted/1831/1 "2025-04-26T09:05:25Z")

</div>

Hi everybody,

I hav the issue:

- I have 2 tables on the PostgresQL include: Keywords is primary table and foreign key to shoes\_line.
- When I choose an any keyword on table shoes\_line, this column is display incorrect data (not same which I selected)
- It is only default an result this first data from table Keywords

This is an bug from Nocodb or I setup wrong ? Please help to support me for this case. Thanks

---

<div class="post-metadata">

**Author:** ![mertmit](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mertmit](https://community.nocodb.com/u/mertmit)\
**Post date:** [April 30, 2025, 8:20pm UTC](https://community.nocodb.com/t/the-foreign-key-not-display-correct-value-seleted/1831/2 "2025-04-30T20:20:31Z")

</div>

Hi @thanhlc

Sharing your ERD view might help us understand where the problem lies [Actions on Data sources | NocoDB](https://docs.nocodb.com/data-sources/actions-on-data-sources/#relations)

Also make sure you set [Display Value](https://docs.nocodb.com/fields/display-value/) properly for both tables as we display this not the PK on relations.
