在主表的单行中插入多个查找值。 [英] Insert Multiple lookup values in single row of main table.

查看:69
本文介绍了在主表的单行中插入多个查找值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个区域查找表,它有以下数据。

I have a territory look up table and it has the below data.

表名:Territory_lkp

Table Name : Territory_lkp

ID                    TerritoryName

ID                   TerritoryName

asdf               日本

asdf                Japan

qwert              Brasil

qwert              Brasil

我有一个名为Funding的主表。以下是样本数据

I have the main table called Funding. Below is the sample data

表名称:资金

ID      FundingName             地区

ID      FundingName              Territory

1         全球资金            asdf,qwert

1         Global Funding           asdf,qwert




在Territory列下的Funding表中,数据是根据ID来存储的在Territory_lkp表中。 

In Funding table under Territory column the data is stored based on ID's what are in Territory_lkp table. 

我想用TerritoryName在Territory_lkp表中更新Funding表中的Territory列。

I want to update the Territory column in Funding table with TerritoryName which is in Territory_lkp table.

请告诉我如何解决这个问题。

Please let me know how to solve the issue.

谢谢,

cvsuman

推荐答案

以规范化形式重新设计你的桌子。 
Redesign your table in normalized form. 


这篇关于在主表的单行中插入多个查找值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆