what about this one:- select CALL_START+(to_date(to_char(trunc(sysdate),'DD/MM/RRRR ')||'00:02:15','DD/MM/RRRR HH24:MI:SS')- trunc(sysdate)) result from dual;
and one thing I would like to highlight it returns date. Regards, Sonty On Apr 15, 5:18 pm, Iyad Bacdounes <iya...@gmail.com> wrote: > Thanks it's working, > as you said just math, > > On 15 April 2010 14:10, Andrej Hopko <ado.ho...@gmail.com> wrote: > > > > > This is the first shot on problem (the simpliest way, to count this - no > > procedure, just math): > > > SELECT TO_CHAR(CALL_START + SUBSTR(CALL_DURATION,1,2)/24 + > > SUBSTR(CALL_DURATION,4,2)/(24*60) + SUBSTR(CALL_DURATION,7,2)/(24*3600), > > 'DD/MM/YYYY HH24:MI:SS') test > > FROM DUAL; > > > I think there may be more advanced way to compute this but this works > > > Andrej Hopko > > > On 15. 4. 2010 13:50, Iyad Bacdounes wrote: > > > Have a nice day, > > > I have the following table > > > CALL_START CALL_DURATION 15/04/2010 10:05:13 00:02:15 Date Varchar2 > > the first column type is date > > the second column type is varchar2 > > > I have an application record every call start time & its duration > > > I want to create a function or query to get the call end date&time which > > equal > > CALL_START + CALL_DURATION > > > Best Regards, > > Iyad > > > -- > > Best Regards, > > > Iyad > > -- > > You received this message because you are subscribed to the Google > > Groups "Oracle PL/SQL" group. > > To post to this group, send email to Oracle-PLSQL@googlegroups.com > > To unsubscribe from this group, send email to > > oracle-plsql-unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/Oracle-PLSQL?hl=en > > > -- > > You received this message because you are subscribed to the Google > > Groups "Oracle PL/SQL" group. > > To post to this group, send email to Oracle-PLSQL@googlegroups.com > > To unsubscribe from this group, send email to > > oracle-plsql-unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/Oracle-PLSQL?hl=en > > -- > Best Regards, > > Iyad -- You received this message because you are subscribed to the Google Groups "Oracle PL/SQL" group. To post to this group, send email to Oracle-PLSQL@googlegroups.com To unsubscribe from this group, send email to oracle-plsql-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Oracle-PLSQL?hl=en