根据 Teradata 中表 2 的值更新表 1
我有两个像这样的表
我想在此处从 Table1 插入到 Table2 。这就是我想要的。
取MOU = 10。它有num1和hour1在同一行。 我想将它插入到与 num1 同一行、与 hour1 同一列的单元格中。
我怎么能这么做呢?
免责声明:我在这里不提供任何代码,因为我不确定如何编写此查询。我确实知道写一个简单的更新。我是特拉科塔新手。
I have two tables like this
I would like to insert from Table1 to Table2 here. This is how I want it.
Take MOU = 10. It has num1 and hour1 in the same row.
I would like to insert it into the cell that is at the same row as that of num1 and same column as that of hour1.
How could I do that?
Disclaimer: I am not offering any code here because I am unsure of how to write this query. I sure do know to write a simple update. I am a teracota newbie.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这有效。
每个小时都做同样的事情。不是很优雅。但这就是我所能得到的一切。
This worked.
Did the same for each hours. Not very elegant. But this is all I could get.
下面是一些应该可以完成工作的通用 SQL。
Here is some generic SQL that should get the job done.
试试这个!
try this!