标题:Conditional Update of a field from multiple tables
只看楼主
bobojin
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2015-9-9
结帖率:0
已结贴  问题点数:20 回复次数:2 
Conditional Update of a field from multiple tables

Dear all,

I have a target table with two fields: Date and ID

There three source tables: S1, S2, S3, each of them has three fields: Date, ID, and Score

Now I want to update the target table: put the ID into the ID field which has the highest Score from the three tables on each day.

Could anyone kindly help me or give me some hints? Thanks

搜索更多相关主题的帖子: multiple highest tables source target 
2015-09-09 15:45
kinvanhon
Rank: 5Rank: 5
来 自:战争学院
等 级:贵宾
威 望:16
帖 子:99
专家分:258
注 册:2014-10-7
得分:10 
your question is not very clear,you'd better describe it in detail and provide some example data.
the highest Score from three tables on each day,is the day in each table or all of tables?
is the field "ID" primary key or just an id?
2015-09-09 17:48
tlliqi
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
等 级:贵宾
威 望:204
帖 子:15453
专家分:65956
注 册:2006-4-27
得分:10 
E文不好
2015-09-09 21:03



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-457139-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.073903 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved