I have a rate table where I am storing the price of the product and its efeective date say a Product Called "Laptop" is 520 USD effective from 01/01/2009 and effective from 07/01/2009 the revised price is 470 USD. So if some one buying on 06/01/2009 the function should return 520 USD and if...