INNER JOIN in oracle 8i

Posted on 2007-11-16
Last Modified: 2013-12-19

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..

Question by:koolsyed
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
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)

X            X
LVL 35

Accepted Solution

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);

- -


Author Comment

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....
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.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DB migration from Mssql to 12c oracle , data not loading. 3 52
Row_number in SQL 6 58
Oracle Join issue. 3 48
Oracle function return value when null 2 34
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
This post first appeared at Oracleinaction  ( Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
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…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

752 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