Hello!
I have a package containing tables from different Data Sources. These Data Sources are based on different databases, which in Oracle SQL cannot be queried on one another. Having the Query Subjects in the model separately works, and they retrieve data when testing just fine.
What I need to do however, is to filter out values in DB1.TableA.ColA from values in DB2.TableB.ColB
What I have tried so far, without luck:
1* Adding a "Where in" filter in the query subject, ie:
Select * From DB1.TableA
Where DB1.TableA.ColA not in (select ColB from DB2.TableB)
2* Adding a Query Subject containing "accepted values" - which returns what is expected when testing the query.
I then move the Query Subject down a level, and create a Filter object using an expression like:
DB1.TableA.ColA not in (DB2.TableB.ColB)
And then adding the filter to the corresponding table that needs to be filtered
Both of these approaches give me the UDA-SQL-0333 error, saying that it cannot find the given tables.
Is there some form of work-around that can be done here? Doing some DBA magic on the Oracle SQL side is not an option sadly, and it can't be implemented in Cognos itself either. It has to be made in FM.
Any ideas?