Hello ,
I have the following table :
ID Ord_ID ORD_DT UPD_DT CODE TYPE ORD_ID
12 429 5/24/17 11/11/19 IND ORDER 1
12 3a8 10/7/19 11/11/19 PRM CHANGE 2
78 8b7 6/12/18 11/14/19 FAM ORDER 1
78 28e 11/3/19 11/14/19 TFM CHANGE 2
I want to get the following based on the Type = Order and Change.
ID PREV_DT CURR_DT PREV_V CURR_V
12 5/24/17 11/11/19 IND PRM
78 6/12/18 11/14/19 FAM TFAM
Any help will be appreciated.
Thank you in advance,
Pam