Convert Oracle join to ANSI join

Hi,

I am using PL/SQL Developer 7.1.1.

Could you please help me to convert the SQL queries written using Oracle join to ANSI join?
 
Here is an example for Oracle join:

SELECT a.acct_num,
a.grp_num,
a.div_num,
a.sub_pers_num,
a.pat_pers_num,
a.pat_dob,
a.rel_code,
b.pat_pmt,
b.deductible_amt,
b.net_pmt
FROM source.master_claim a,
source.master_line b,
param.proc_hier c,
param.con_product d
WHERE a.clm_num = b.clm_num
AND a.clm_seq = b.clm_seq
AND a.clm_stat IN ( 'P', 'H', 'A' )
AND b.billed_ada_proc = c.proc_key
AND b.prod_id = d.prod_id
AND c.max_app = 'BASIC';

-------------------------------------------

And here is the equivalent ANSI join:

SELECT a.acct_num,
a.grp_num,
a.div_num,
a.sub_pers_num,
a.pat_pers_num,
a.pat_dob,
a.rel_code,
b.pat_pmt,
b.deductible_amt,
b.net_pmt
FROM source.master_claim a
join source.master_line b
ON ( a.clm_num = b.clm_num
AND a.clm_seq = b.clm_seq )
join param.proc_hier c
ON ( b.billed_ada_proc = c.proc_key )
join param.con_product d
ON ( b.prod_id = d.prod_id )
WHERE a.clm_stat IN ( 'P', 'H', 'A' )
AND c.max_app = 'BASIC';

-------------------------------------

Thanks in advance!
 
We are writing our code using ANSI joins. This works fine on Oracle 10/11 databases.
Are you searching for a script to convert your own joins or is it the SQL used by PL/SQL Developer to query the data dictionary etc. that you want to rewrite?
 
No, Pedersen. My question is, that is there any option in PL/SQL Developer 7.1 to convert the queries written using the old-style joins (using "(+)") to new ANSI joins (using "LEFT OUTER JOIN").

Thanks in advance!
 
Back
Top