Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> FULL JOIN oracle bug!
Hello all,
Here is an example of a SQL query that doesn't work under ORACLE and
it should work. The ORACLE version may be is 10g (I should ask our DB
administrator)
First create that view:
--it is OK, it works fine
CREATE OR REPLACE VIEW simple_view AS
(
SELECT
'frist_column' as first_column,
'second_column' as second_column
FROM
(
SELECT
dual.*
FROM
dual
)
)
Here is the query that should work but ORACLE reports "ORA-00918:column ambiguously" defined!
SELECT
*
FROM
(
SELECT
'column_1' AS column_1
FROM
dual
) t1
FULL JOIN
(
SELECT
'column_1' AS column_1 --,first_column ,second_column --"ORA-00918:column ambiguously defined" reported! FROM simple_view
If one makes one of the following modifications (or both) it works:
Note that the problem disapears if FULL JOIN is replaced with INNER JOIN or JOIN. But it changes the query meaning while the modifications 1) and 2) doesn't the change the way query works.
1.Has someone had the problem described above? 2.Does someone know a way to report that bug to ORACLE and have a reasonable "official" explanation?
Thanks in advance
Stoyan Stoyanov Received on Tue Nov 08 2005 - 05:58:39 CST