Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
String date=TalendDate.formatDate("dd-MMM-yy", TalendDate.addDate(TalendDate.parseDate("dd-MMM-yy HH:mm:ss",
TalendDate.getDate("dd-MMM-yy HH:mm:ss")), -2, "dd"));
System.out.println(date);
trunc(sysdate)-2
or
to_char(sysdate-2,'dd-MMM-yy')
1. I have two Oracle tables one Source and another destination table. I want to move the data from source to target.
2. I have used tOracleInput(Source Table name:DIM_TIME) and tOracleOutput(Target Table Name:TEMP_DAILY_FINANCE_RPT_CAL).
3. Source table contains many columns but i want only two columns data (time_id (Number), calander_date(Date)).
4. Target table contains only two columns with same column definition as of source table (time_id (Number), calander_date(Date)).
Hi Pavan
Now forget all the methods about to_date() or TalendDate.
Please show me the issue you got. A screenshot is preferred.
Or I may misunderstand your requirement.
Regards,
Pedro
Hi Pedro,
OK, let me put in single statement, "The job executes perfectly but my purpose of doing that job is not served"
After the job gets executed the target table should be truncated and insert the values in the target table based on the select query output
I attach image of the output that the target table currently has, the output shows it has one value in the table, so what i want now is if i run my talend job it should truncate the old value and insert new value i.,e TIME_ID:20120403, CALENDAR_DAY:03-APR-2012 00:00:00, but this is not happening
Forgive me if my English confuses you, i am sorry for that.
Thanks and Regards,
Pavan
Hi Pavan
Now forget all the methods about to_date() or TalendDate.
Please show me the issue you got. A screenshot is preferred.
Or I may misunderstand your requirement.
Regards,
Pedro
Hi Pavan
The size of this uploaded image should be less then 1024x768 pixels.
How many rows in target table before you run the job?
Regards,
Pedro