if this query performs well, you can join result of this query,
with other tables easily, say other 3 tables are t1, t2, t3 (all three a joinnable on account_id)
select t1.*, t2.*, t3.* FROM t1, t2, t3, (select uniclaim.synaptek_account_
from uniclaim.synaptek_account_
minus
select batch_prod.cops_billinglog
from batch_prod.cops_billinglog
uniclaim.synaptek_account_
where batch_prod.cops_billinglog
and batch_prod.cops_billinglog
where
t1.account_id = x.account_id
and t2.account_id = x.account_id
and t3.account_id = x.account_id
Main Topics
Browse All Topics





by: sathyagiriPosted on 2007-08-16 at 11:10:41ID: 19710730
You can use PLSQL to do this
info.accou nt_id acct_id info .clientid acct_id , info .clientid = uniclaim.synaptek_account_ info.accou nt_id .recdate > to_date('07-01-2006', 'MM-DD-YYYY'))
declare
<variable> datatype;
begin
for i in ( select uniclaim.synaptek_account_
from uniclaim.synaptek_account_
minus
select batch_prod.cops_billinglog
from batch_prod.cops_billinglog
uniclaim.synaptek_account_
where batch_prod.cops_billinglog
and batch_prod.cops_billinglog
loop
select abc into <variable> from table where id = i.acct_id;
end loop;
end;