If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Time 's question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-03, 03:56
jeajohn jeajohn is offline
Registered User
 
Join Date: May 2003
Posts: 2
Unhappy Time 's question

When i use below sql command
==>
select (DC.p_date - ( select min(DC.p_date) from DC) )*48 as interval from DC

Note: DC.p_date - ( select min(DC.p_date) from DC) )*48 --> to get the ineterval erery 30 min.

result is like below :
interval
------------------
94 08:44:0
332 19:26:2
332 19:26:2
333 02:39:1

but i should use what kind of sql function to change '94 08:44:0' to a double or integer (use trunc will fair)

Last edited by jeajohn; 06-01-03 at 03:59.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On