Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Tried renaming fields, still gives synthetic key for below query:
//Load Incremental Data
Incremental_Table:
LOAD
PICKTICKET#,
SHIP_TO_COUNTRY,
PLANNED_SHIP_VIA,
TOTAL_NO_OF_CARTONS,
PKMS_USERS,
CASE#,
TO_LOCATION,
MENU_OPTION_NAME,
FROM_LOCATION,
STYLE,
UNITS#,
DATE_STRING,
TIME_STRING,
DATE_TIME_STRING,
USER_NAME,
Date(Date#(DATE_STRING,'YYYYMMDD'),'MM/DD/YYYY') as DATE;
SQL Select....
FROM "\\Glsdwcfs02002\qv\QvDev\SrcDocs\2.NAM_Dell\1.QVD\MOD3_Data_Source.QVD" (QVD)
Hours_Associate:
LOAD USER_NAME
FROM "\\Glsdwcfs02002\qv\QvDev\SrcDocs\2.NAM_Dell\1.QVD\MOD3_Data_Source.QVD" (QVD)
;
LEFT Join(Hours_Associate)
Hour_Information:
LOAD * Inline [
SUPERVISOR, USER_NAME, HOURS, DATE
Charla Hunter,'Eliga Dani' , 8 , 07/16/2018,
Charla Hunter,'Karen Ector' , 8 , 07/16/2018,
Charla Hunter,'Lilian Fares' , 8 , 07/16/2018,
];
Errors out.
I need to load DATE_STRING into Hours_Associate_Table?
Small correction Sunny it should be just DATE right?
LOAD *,
USER_NAME&Date(Date#(DATE,'YYYYMMDD'),'MM/DD/YYYY') as UserDateKey
My bad, vishsaggi is right... use DATE instead of DATE_STRING... But like this
Hours_Associate:
LOAD *,
USER_NAME&Date(DATE, 'MM/DD/YYYY') as UserDateKey
Resident Hours_Associate_Temp;
DROP Table Hours_Associate_Temp;
DROP Fields USER_NAME, DATE From Hours_Associate;
No error, but HOURS field in straight table does not populate as the above screenshot.
Closed it, and then reloaded it after opening. Works now! Thanks Sunny!
Thank you Vishwarath!