Solved

Informix Time Query Question

Posted on 2001-08-08
3
292 Views
Last Modified: 2012-06-27
If I have a table name time_hrs that contains the hour value in integer format i.e 7,8,9,10...etc Is there a dynamic query that can convert take the value of the table - the current time and convert the result into minutes?

This is for informix.
0
Comment
Question by:Dargie
3 Comments
 
LVL 1

Expert Comment

by:Greyman
ID: 6391534
I can almost get you there:


select   datetime(time_hrs.column_name|":00") hour to minute - extend(current, hour to minute)


This will give you an hour to minute datetime variable, but I can't find any commands that return an integer number of minutes from a datetime.  Can you do that in the client instead?  Why do you need to do it?
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7259526

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
Jgould earned 0 total points
ID: 7289342
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question