Database version : 10.2.0.4.0
I have a query similar to following
select * from ap_invoices a
where
exists
(
select 1 from
(select invoice_id from ap_invoices b where b.invoice_id = a.invoice_id )
When I ran above, it gives an error messageĀ ----> ORA-00904: "A"."INVOICE_ID": invalid identifier.
I need to access main query data through alias inside sub sub query. please help.
Thanks
slokam