Hello
I am trying to figure out if it's possible to use conditional sql in Oracle 9i to write an SQL statement such as the following;
select a.itema, b.itemb, c.itemc
from tablea a, tableb b, tablec c
where a.index=b.index and a.index=c.index
This needs to be one global, dynamic or conditional SQL query that runs across multiple users in the instance. The users may have some different attributes for these items and tables. For instance, for some of the users, itemb in tableb is called itemb1, other users do not have tablec at all. I've tried fooling around with the CASE statment a little, but no success so far. Any help would be appreciated.