Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Cast Function with Format option

OraFighterOct 28 2011 — edited Oct 28 2011
Below is the query in Teradata
select
c_start_dt
|| ' '
|| CAST(c_start_tm AS INTEGER format '99:99:99' ) AS Date_Time
from table1;

I have to convert it to Oracle 10.2.0.1 .
my issue is I can not directly use 'format '99:99:99' is there any other way to do this..?

Expected Output :

Date_time
28/10/2011 13:19:50
28/10/2011 14:19:55

desc table1
call_start_dt date,
call_start_tm number(10)
This post has been answered by Peter Gjelstrup on Oct 28 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 25 2011
Added on Oct 28 2011
7 comments
1,044 views