Pivot Stage
Posted: Mon Sep 21, 2009 8:20 am
In a sample set of data, the format of my input file appears as follows:
CUST ID, HOME_PHONE, BUS_PHONE, ALT_PHONE
I'd like to normalize the data so that the output appears as follows:
CUST_ID, PHONE_NUM, PHONE_TYPE
The PHONE_TYPE column would reflect whether the value in PHONE_NUM was sourced from the HOME, BUS or ALT column.
Is this possible using the Pivot stage?
Thanks!
CUST ID, HOME_PHONE, BUS_PHONE, ALT_PHONE
I'd like to normalize the data so that the output appears as follows:
CUST_ID, PHONE_NUM, PHONE_TYPE
The PHONE_TYPE column would reflect whether the value in PHONE_NUM was sourced from the HOME, BUS or ALT column.
Is this possible using the Pivot stage?
Thanks!