Scenario:
Suppose you have a source is like this
Source
E_NO YEAR DAYNO
------ --------- - ---------
1 01-JAN-07 301
2 01-JAN-08 200
Year column is a date and dayno is numeric that represents a day ( as in 365 for 31-Dec-Year). Convert the Dayno to corresponding year's month and date and then send to target.
Target
E_NO YEAR_MONTH_DAY
------ --------- ----------
1 29-OCT-07
2 19-JUL-08
Solution:
Use below date format in exp transformation
Add_to_date(YEAR,’DD’,DAYNO)
Comments
Post a Comment