A fellow forum man, ask a question about SQL Query. Unfortunately I was not able to give a good him.
Here is the data and the query he uses:
DECLARE @Temp TABLE (Id int, Date datetime, Rate float)
INSERT INTO @Temp VALUES (1,'1/1/2007',1)
INSERT INTO @Temp VALUES (2,'1/2/2007',1)
INSERT INTO...