I have a column 'Load_date' which is available in many tables and it becomes very important filter. My question is how do I create a filter that would be intelligent enough to include that many where clauses as many table in the from clauses. For example
if in From clause I have Table1, table2 (both have load_date as a column) then in the Where clause i need table1.load_date = some_value and table2.load_date = some_value.
I also know I can also achieve then same by having
table1.load_date = table2.load_date and
table1.load_date = some_value
but what I have seen is the earlier one runs faster that the later one if the tables are partitioned on Load_date.
-- Krishnan
if in From clause I have Table1, table2 (both have load_date as a column) then in the Where clause i need table1.load_date = some_value and table2.load_date = some_value.
I also know I can also achieve then same by having
table1.load_date = table2.load_date and
table1.load_date = some_value
but what I have seen is the earlier one runs faster that the later one if the tables are partitioned on Load_date.
-- Krishnan