Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Informix Time Query Question

Posted on 2001-08-08
3
Medium Priority
?
297 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

886 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