I have a table of contracts and a table of prices. For the purpose of this test the contracts are just contractid and name. The prices table contain records in the format: contractid, AsAt, Price.
prices.contract and prices.AsAT make up the primary key so each contract will have multiple...