Torben Villumsen
New member
- Local time
- Today, 05:17
- Joined
- Jun 3, 2010
- Messages
- 6
I have a large table with approx. 1000 different securities with daily closing pricess for approx. 5 years. The Securities are sorted by name and then by date so that the latest date is the last one.
I need a query that can give me the last 60 days closing prices for each security. Therefore the new table will have 60,000 daily closing prices (1000 securities * 60 daily closing prices - latest).
My table is sorted in such a way that the latest date is at the bottom of the table. Please see below:
Share-A 15/05/09 101.50
Share-A 16/05/09 102.50
.
.
Share-A 03/07/11 110.25
Stock B 15/05/09 111.25
.
.
Stock B 03/07/11 116.25
Hope someone can help.
I need a query that can give me the last 60 days closing prices for each security. Therefore the new table will have 60,000 daily closing prices (1000 securities * 60 daily closing prices - latest).
My table is sorted in such a way that the latest date is at the bottom of the table. Please see below:
Share-A 15/05/09 101.50
Share-A 16/05/09 102.50
.
.
Share-A 03/07/11 110.25
Stock B 15/05/09 111.25
.
.
Stock B 03/07/11 116.25
Hope someone can help.