在另一个表中添加文章
我有表 article:
arrtno descr unit sales
1 beer 1 10
2 coke 1 12
3 beer ct 12 5
4 coke ct 12 7
和表 mutations,
artno mutation
1 3
2 4
我需要查询啤酒的销售情况,因此它将是 1*10 + 12*5
。那么如何从其他表中获取突变 par 并将其添加到基本项中。
I have table article:
arrtno descr unit sales
1 beer 1 10
2 coke 1 12
3 beer ct 12 5
4 coke ct 12 7
and a table mutations
artno mutation
1 3
2 4
I need to query sales for beer so it would be 1*10 + 12*5
. So how to get mutation par from other table and add it to basic item.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这个
try this
试试这个
try this