Learn the reason and how to get to the bottom of the ORA-01468 error message in Oracle.
Description
When you encounter an ORA-01468 error, the following error message will appear:
ORA-01468: a predicate might also reference solely one outer-joined desk
Cause
You tried to execute a SQL assertion that joins two tables and both tables had been outer joined. When becoming a member of two tables, only one of the tables can be outer joined.
Resolution
The option(s) to resolve this Oracle error are:
Option #1
Rewrite your SQL so that only one of the tables is an outer be part of table.
For example, if you had tried to execute the following SQL statement:
SELECT *
FROM suppliers, orders
WHERE suppliers.supplier_id(+) = orders.supplier_id(+);
You would receive the following error message:
You should right this by using SQL announcement with both syntax:
Syntax #1:
SELECT *
FROM suppliers, orders
WHERE suppliers.supplier_id(+) = orders.supplier_id;
OR
Syntax #2:
SELECT *
FROM suppliers, orders
WHERE suppliers.supplier_id = orders.supplier_id(+);
Learn more about Oracle Joins.
Leave a Review