> I tried this, but :( am I missing something?
>
> sorry I am new in informix
>
> select appt_nlt_date, appt_nlt_time, (extend(appt_nlt_date, year to second) +
> (appt_nlt_time - "00:00:00")) from contract
Please feel free to elaborate on what ":(" means.
As a general guideline, when you need help with a problem, you should
always provide at least the following information:
1) What did you do?
2) What outcome did you expect?
3) What happened instead?
(Note that "It doesn't work" doesn't qualify as an appropriate answer to
question 3.)
You answered 1, but not 2 and 3.
--
Carsten Haese
http://informixdb.sourceforge.net
vchu - 18 Apr 2008 21:02 GMT
sorry for the confusion.
I ran this sql, but it said "extra charactors at the end of the datetime or
interval"
select appt_nlt_date, appt_nlt_time, (extend(appt_nlt_date, year to second) +
(appt_nlt_time - "00:00:00")) from contract
I am trying to combine appt_nlt_date and appt_nlt_time as a datetime field,
so that I can you for subtraction of another datetime field later.
>> I tried this, but :( am I missing something?
> >
[quoted text clipped - 20 lines]
>Carsten Haese
>http://informixdb.sourceforge.net
Carsten Haese - 18 Apr 2008 22:10 GMT
> sorry for the confusion.
>
> I ran this sql, but it said "extra charactors at the end of the datetime or
> interval"
That means that your appt_nlt_time is not a "datetime hour to second."
It's probably a "datetime hour to minute". (Of course, if you had *told*
us what it is, I wouldn't have to guess!)
Try replacing "second" with "minute" and "00:00:00" with "00:00".
HTH,
--
Carsten Haese
http://informixdb.sourceforge.net
vchu - 21 Apr 2008 15:59 GMT
It works now.
Thanks so much.. I really appreciated your help. :)
>> sorry for the confusion.
>>
[quoted text clipped - 12 lines]
>Carsten Haese
>http://informixdb.sourceforge.net