2
I have a query that runs in several different schemas in the database, and there is a specific table that only some schemas have, and if there is the value returns.
SELECT t.coluna1
,t.coluna2
,(SELECT coluna3
FROM tabelaquepodenaoexistir
WHERE coluna4 = 'S'
AND coluna5 = 'N') as coluna 3
FROM tabelaqueexisteemtodosschemas t
In some schemas this query returns what it should return, but in some it returns the error:
ORA-00942: the table or view does not exist
Remarks:
- You cannot use DBA or SYS access.
- I can’t create this table.
- I cannot create a Function in schema.
I don’t have, I have the
user_tables
– David
https://asktom.oracle.com/pls/apex/f?p=100:11:0:::P11_QUESTION_ID:11670337038966
– Motta