Solved

Informix Time Query Question

Posted on 2001-08-08
3
289 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Introduction: Often, when running a query with joins, the results show up "duplicates", and often, those duplicates can be "eliminated" in the results using DISTINCT, for example. Using DISTINCT is simple: just add it after the SELECT keyword, an…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user 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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now