Hi Team,
I am working on a scenario where I need to transpose the data in following way :
| START_DT | PRODCUT | COUNTRY | REGION | ID1_qty | ID2_qty | OD1_qty | OD2_qty | SH1_qty | SH2_qty |
| 10/25/17 | ABC | USA | AMR | 5 | 6 | 2 | 3 | 5 | 6 |
| 10/25/17 | DEF | CHINA | CHN | 2 | 2 | 1 | 1 | 2 | 2 |
Expected data :
| PRODCUT | COUNTRY | REGION | input_dt | output_dt | ship_dt | input_qty | output_qty | ship_qty |
| ABC | USA | AMR | 10/25/17 | 10/25/17 | 10/25/17 | 5 | 2 | 5 |
| ABC | USA | AMR | 10/26/17 | 10/26/17 | 10/26/17 | 6 | 3 | 6 |
| DEF | CHINA | CHN | 10/25/17 | 10/25/17 | 10/25/17 | 2 | 1 | 2 |
| DEF | CHINA | CHN | 10/26/17 | 10/26/17 | 10/26/17 | 2 | 1 | 2 |
where ID1_DT is start_dt and and ID2_DT is start_dt + 1 similarly for output_Dt also
Can you please help to suggest a way to achieve this.