Hey guys
I have a sql statement that contains an inner and outer join, but when I run that sql statement it gives me an error on "oj", saying "Non supported SQL92 token at position: 217: oj" . I was running this sql statement agaibst Oracle 8i. So I guess oracle doesnt like "oj".
This is the sql statement in SQL92
select * from {oj tableA INNER JOIN tableB ON tableA.number = tableB.number
RIGHT OUTER JOIN JOBS ON JOBS.number = tableB.number}
I have converted the above sql statement into the format that should be acceptable by oracle 8i. Please let me know if this should work or not.
select * from tableA, tableB, JOBS where tableA.number = tableB.number and JOBS.number (+) = tableB.number.
If this is not the right conversion than I will appreciate if you can supply the code for it.
Thanks
I have a sql statement that contains an inner and outer join, but when I run that sql statement it gives me an error on "oj", saying "Non supported SQL92 token at position: 217: oj" . I was running this sql statement agaibst Oracle 8i. So I guess oracle doesnt like "oj".
This is the sql statement in SQL92
select * from {oj tableA INNER JOIN tableB ON tableA.number = tableB.number
RIGHT OUTER JOIN JOBS ON JOBS.number = tableB.number}
I have converted the above sql statement into the format that should be acceptable by oracle 8i. Please let me know if this should work or not.
select * from tableA, tableB, JOBS where tableA.number = tableB.number and JOBS.number (+) = tableB.number.
If this is not the right conversion than I will appreciate if you can supply the code for it.
Thanks