My quesion is, can I use a look up, of sorts, in an SQL Pass Through
query?
My problem is I have built an application that uses pass through
queires to retrieve information from an Oracle source DB; rather than
build long SQL statements I have several simple pass through's that I
use to populate local tables then run the queries off those tables...
A typical and simplified SQL might be like ...
SELECT field1, field2, field3 from TABLE1 where Condition1 = 1234 and
Condition2 = 5678 and Condition3 = 91011;
Condition1, 2 and 3 will differentiate between which area of the
database is being interrogated. When the project asks for a different
area I seed a master copy of the application and change Condition1, 2
and 3 to suit.
There are a few different pass throughs on separate tables that differ
in which fields are being requested, but Condition1, 2 and 3 would
always be the same, is there anyway I can have the Pass Through query
'look up' Condition1, 2 and 3 without changing it for each pass
through every time I seed a new area? This would save time, as then I
would only have to change the 'look up' source once ...?
Hope that makes sense and thanks in advance ...
Luke