I have a query where I am looking to get the price from the day before.
Here is what I have so far:
SELECT [tblPrice].[PriceID], [tblPrice].[LocationID], [tblPrice].[Price], [tblPrice].[ChangeinPrice], [tblPrice].[priceDate], DateAdd("d",-1,[PriceDate]) AS DayBefore
FROM tblPrice;
The DayBefore will give me the date of the previous day, now how do I pull the previous days price out of this?
Here is what I have so far:
SELECT [tblPrice].[PriceID], [tblPrice].[LocationID], [tblPrice].[Price], [tblPrice].[ChangeinPrice], [tblPrice].[priceDate], DateAdd("d",-1,[PriceDate]) AS DayBefore
FROM tblPrice;
The DayBefore will give me the date of the previous day, now how do I pull the previous days price out of this?