Solved

INNER JOIN in oracle 8i

Posted on 2007-11-16
4
4,851 Views
Last Modified: 2013-12-19
SELECT * FROM
TABLE1 a
INNER JOIN TABLE2 b ON (a.KEY_ID=b.KEY_ID)

doesnt this work on 8i???

what could be easy solution?..i know the option of writing a,b where a.key_id=b.key_id..



0
Comment
Question by:koolsyed
  • 2
4 Comments
 
LVL 18

Expert Comment

by:Jinesh Kamdar
ID: 20299611
Of course it does. What error do u get ?

select * from dual a inner join dual b on (a.dummy = b.dummy)

DUMMY DUMMY_1
X            X
0
 
LVL 34

Accepted Solution

by:
johnsone earned 50 total points
ID: 20299710
If you database version is really 8i, then Oracle does not support the ANSI join syntax until Oracle 9.

In Oracle 8, you get:

SQL> select * from dual a inner join dual b on (a.dummy = b.dummy);
select * from dual a inner join dual b on (a.dummy = b.dummy)
                     *
ERROR at line 1:
ORA-00933: SQL command not properly ended

In Oracle 9, you get:

SQL> select * from dual a inner join dual b on (a.dummy = b.dummy);

D D
- -
X X

0
 

Author Comment

by:koolsyed
ID: 20299738
This is what i am trying..
SELECT mp.a,mp.b        
  FROM M_V_S mvs , M_P mp
  INNER JOIN M_P mp ON (mvs.key_id = mp.key_id)
  ORDER BY a,b;

it says...expecting equals near INNER....
0
 
LVL 18

Expert Comment

by:Jinesh Kamdar
ID: 20299765
Oops, i didnt notice that the question was asked specifically for 8i and just went along with the zones that said Oracle 8.x / Oracle 9.x. No personal hands-on on 8i, but if John says so after trying it, then it would have to be true.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question