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 > Interval Time

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-26-08, 13:02
robiverson robiverson is offline
Registered User
 
Join Date: Dec 2008
Posts: 5
Interval Time

i have a table which has date and interval.interval contains hourandminute
Interval data is every 30 minute interval.for ex 0,30,100,130,200....1200,1230,1300 like this.

how do i get last 30 minute interval data from select query ?
Please let me know your thoughts

Thank you for your help
Reply With Quote
  #2 (permalink)  
Old 12-26-08, 14:13
robiverson robiverson is offline
Registered User
 
Join Date: Dec 2008
Posts: 5
when i query extend(current hour to minute - 40 units minute) i get 2008-12-26 13:31:00.000?
how do i get the value in hhmm format ?. for ex 1331
Reply With Quote
  #3 (permalink)  
Old 12-26-08, 20:09
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 60
Quote:
Originally Posted by robiverson
when i query extend(current hour to minute - 40 units minute) i get 2008-12-26 13:31:00.000?
how do i get the value in hhmm format ?. for ex 1331
How about _READING_ this forum?
http://www.dbforums.com/showpost.php...84&postcount=2
Reply With Quote
  #4 (permalink)  
Old 12-26-08, 20:10
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 60
Quote:
Originally Posted by robiverson
i have a table which has date and interval.interval contains hourandminute
Interval data is every 30 minute interval.for ex 0,30,100,130,200....1200,1230,1300 like this.

how do i get last 30 minute interval data from select query ?
Please let me know your thoughts

Thank you for your help
What do you mean by "last 30 minute interval data"?
Reply With Quote
Reply

Thread Tools
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