I have 2 tables joined by a Date field called say 'StartDate'.
Now this 'StartDate' should check against a 3rd table having 2 Date fields say 'FromDate' and 'ToDate' and see whether it falls between those 2 dates.
If 'Yes' then pick a column value from 3rd table and use that value as a divisor to some of the columns of the JOIN output of the first 2 tables.
I did the join of the first 2 tables and I tried to put a subquery for the 3rd table but did not get the resut.
What is the best approach?
Now this 'StartDate' should check against a 3rd table having 2 Date fields say 'FromDate' and 'ToDate' and see whether it falls between those 2 dates.
If 'Yes' then pick a column value from 3rd table and use that value as a divisor to some of the columns of the JOIN output of the first 2 tables.
I did the join of the first 2 tables and I tried to put a subquery for the 3rd table but did not get the resut.
What is the best approach?