Hi, I have 3 tables which between them hold sales summary data, cost prices data and then dates/session info.
I need to pull everything from the sales table + work the actual cost of each sale (Summ.Volume * cost.CostPrice) *but* using the cost price that was applicable on the date the sale was made.
COST table has ProdID, Cost, ChangeDate
SALE table has ProdID, SessionID, Volume + others..
SESS table has SessionID, SessionDate
I have had a go but without much success. Any pointers would be greatly appreciated!
I need to pull everything from the sales table + work the actual cost of each sale (Summ.Volume * cost.CostPrice) *but* using the cost price that was applicable on the date the sale was made.
COST table has ProdID, Cost, ChangeDate
SALE table has ProdID, SessionID, Volume + others..
SESS table has SessionID, SessionDate
I have had a go but without much success. Any pointers would be greatly appreciated!