date-arithmetic
Regarding simple python date calc
I am trying to find out when someone will turn 1 billion seconds old. the user inputs when they were born. These values are then converted to seconds and then I add 1 billion seconds and convert back[详细]
2023-04-10 13:02 分类:问答How to subtract 2 dates in oracle to get the result in hour and minute
I want to subtract 2 dates and represent the result in hour and minute in one decimal figure. I have the following table and I am doing it in this way but the result is not as desired.[详细]
2023-04-05 10:42 分类:问答PHP Accurately Calculate Nearest Age for a given DOB
I am trying to calculate the nearest Age based on DOB, but i cant wrap my head around how to do it. I have tried some methods which estimates but this is not good enough. We need to calculate the days[详细]
2023-03-31 11:36 分类:问答How do I a convert a number to an INTERVAL of minutes?
In pseudo-Oracle, I want to do the following: select systimestamp + to_interval(select NUMERIC_COLUMN from SOME_TABLE where SO开发者_运维问答ME_TABLE_PK = :stuff) from dual;[详细]
2023-03-30 00:56 分类:问答How to optimize oracle query from partitioned table?
I have a partitioned table by date (by days) and a local index on the fields (including date field). If I make a query:[详细]
2023-03-29 03:25 分类:问答how to write a query to count the number of days that a user has logged in?
The site log records a datetime stamp each time a user logs in.I am in need of a query to count the number of days that a user has logged in.Just doing a count on the [DateTime] field doesn\'t work be[详细]
2023-03-26 00:07 分类:问答query by day in PL/SQL(oracle)
I am querying from database: select * from database where id = 12345 a开发者_StackOverflownd i get a couple of days where it is equal to[详细]
2023-03-25 13:30 分类:问答How to get the number of days in a month?
I am trying to get the following in Postgres: select day_in_month(2); Expected output: 28 Is there any built-in way i开发者_如何学Cn Postgres to do that?SELECT[详细]
2023-03-24 18:20 分类:问答How to get a list of months between 2 given dates using a query?
I have 2 dates, say 28-Mar-2011 and 29-Jun-2011. I need an sql query that will display the months between these开发者_开发技巧 2 dates including the months containing the dates, ie. June, May, April a[详细]
2023-03-24 17:57 分类:问答Time difference need to be added in start time
I hope any one will help me with this. I have two datetime start and end time . I get the time difference between two.[详细]
2023-03-21 11:17 分类:问答