| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1042 人关注过本帖
标题: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
快速回复:Conditional Update of a field from multiple tables
数据加载中...
 
   



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

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