Tema: Re: Oracle 10g R2 dblink problema
Autorius: 2x50
Data: 2010-09-02 17:51:05
dashilo.... :)
nepazymejau, kad visos lentos pasiekiamos per mirror schema, taip butu 
teisingai

with query_1 as
(select ... from mirror.table_B)
select
  col_1,
  ...
  col_N,
  ...
from mirror.table_A, mirror.table_B, mirror.table_C
where ....
UNION ALL
select
  col_1,
  ...
  (select col_x from query_1 where ...) col_N
  ...
from mirror.table_A, mirror.table_B, mirror.table_C
where ...
order by ...