I am not sure if this is possible, but maybe someone could advise.
We have records set up in our system as follows:
Product_ID | Product_Name | Product_Price | Original_Product_ID
when a product is modified a new record is created with a reference to the previous encarnation in the Original_Product_ID field.
What I want to do is pass in a Product_ID (Current) and return the product which this came from, in some cases this will return the same as is passed in, in other cases I will need to loop through a number of records.
Please can someone advise on this…
Do you need something like (non-recursive solution)?