I have a table which contains multiple records per ID. A new record is entered each time one of the fields change. This can include changes to the STATUS field (a two letter field eg IR).
When a change occurs a new row is created with a datastamp of the time of change.
I want to for each ID track the changes to the STATUS field in the order they occured and when they occurred and generate one record for each ID.
eg orignal table
ID STATUS DATA_CHANGED
10001 QA 1/1/2003
10001 QA 2/1/2003
10001 PO 3/1/2003
and convert to
ID QA PO PATH
10001 1/1/203 3/1/2003 QA_PO
Any ideas?
When a change occurs a new row is created with a datastamp of the time of change.
I want to for each ID track the changes to the STATUS field in the order they occured and when they occurred and generate one record for each ID.
eg orignal table
ID STATUS DATA_CHANGED
10001 QA 1/1/2003
10001 QA 2/1/2003
10001 PO 3/1/2003
and convert to
ID QA PO PATH
10001 1/1/203 3/1/2003 QA_PO
Any ideas?