Hi,
I have a table containing amongst others the following attributes:
Period (yyyymm)
ContractID
Price
The table contains approximately 3 years of historical information (36 periods). I am trying to write a query that presents the contract details of contracts having a price change of more than XX% ((1-XX)<PriceT/PriceT-1 > (1+XX)) over the last XY consecutive periods. I have tried all kind of subqueries but can't get my head around this.
Can anybody help me please?
Kind regards,
Paul
I have a table containing amongst others the following attributes:
Period (yyyymm)
ContractID
Price
The table contains approximately 3 years of historical information (36 periods). I am trying to write a query that presents the contract details of contracts having a price change of more than XX% ((1-XX)<PriceT/PriceT-1 > (1+XX)) over the last XY consecutive periods. I have tried all kind of subqueries but can't get my head around this.
Can anybody help me please?
Kind regards,
Paul