IN mysql には、次のようなものがあります。
Select * from (select * from t1, t2 where t1.c1=t2.c1 ) tbl1 ,tbl2
where tbl1.col1=tbl2.col2;
オラクルで同じことをしようとすると、無効な識別子 "tbl1"."col1".
この方法を試してください:
Select tbl1.col1
from (select c1 as col1 from t1, t2 where t1.c1=t2.c1 ) tbl1 ,tbl2
where tbl1.col1=tbl2.col2;
詳細については、こちらをご覧ください。
これを試して:
Select tbl1.*, tbl2.*
from (
select t1.c1 as col1, t2.* from t1, t2 where t1.c1=t2.c1
) tbl1 ,tbl2
where tbl1.col1=tbl2.col2;
2 つのテーブルを結合するため * は機能しません。代わりに tbl1.* と tbl2.* を使用してください。
Parado で既に提案されているように、内部選択で t1.c1 の名前を col1 に変更する必要もあります。