[英]ORACLE SQL Joining MULTI SELECT statement ORACLE
I have a query I need to re-write to join multi-select statement. 我有一个查询,我需要重新编写才能加入多选语句。 I have tried to write this query using join statement but am not getting the results.
我试图使用join语句编写此查询,但是没有得到结果。 The error is the Invalid Identifier D_TRANS Code is below :
错误是无效标识符D_TRANS代码如下:
The issue lies in the ds
subquery - you have the following line in the subquery generating the immediate_actions
column: 问题出在
ds
子查询中-子查询中的以下行生成了immediate_actions
列:
WHERE d_synergi_reference.trans = d_trans.trans
However, the table you're joining this to is d_synergi, so I suspect the line should be: 但是,您要加入的表是d_synergi,因此我怀疑该行应为:
WHERE d_synergi_reference.trans = d_synergi.trans
As an aside, I would recommend you use shorter aliases when the table names are longer than 3 or 4 characters; 顺便说一句,当表名超过3或4个字符时,我建议您使用较短的别名。 it's easier on the eye to read and spot issues, IMHO.
恕我直言,阅读和发现问题更容易。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.