Hi ,
I have report requirement in that I need to have a join condition based on the input prompt values based on two tables…
Ex :- Say If I have two different tables …Customer and Employee
an I have four input prompts namely City (mandatory) , State (optional) ,zip (optional) and country (optional).
My Initial join will always like this
Customer.city = Employee.city – if only city is passed in prompt
if the value for state is passed in prompt value then my join condition should be:-
Customer.city = Employee.city
AND Customer.state = Employee.state
if country is passed in prompt then :-
Customer.city = Employee.city
AND Customer.state = Employee.state
AND customer.country = Employee.country
Like this there can be any permutation and combination of prompt values…and I need to join the two tables based on the input prompt values…
can you anyone guide me on this issue.
Canton (BOB member since 2006-10-16)