Time stored as a NUMBER field [message #609753] |
Tue, 11 March 2014 21:43 |
|
GretelDePaepe
Messages: 4 Registered: March 2014
|
Junior Member |
|
|
Our application shows a time in one of the forms. When I look at the database table, the values are stored in a number field. When I extract and load the data into my data analysis tool, the time comes like: 0.999999999999. The numbers look random to me. How can I transform this field so I can actually analyse the field as a time value?
|
|
|
|
|
|
|
|
|
Re: Time stored as a NUMBER field [message #610355 is a reply to message #609764] |
Wed, 19 March 2014 09:28 |
|
LKBrwn_DBA
Messages: 487 Registered: July 2003 Location: WPB, FL
|
Senior Member |
|
|
Are you sure it's "time of day" or just a time interval?
SQL> SELECT NUMTODSINTERVAL ( .172222, 'DAY')
2 , NUMTODSINTERVAL ( .183332998, 'DAY')
3* FROM DUAL
SQL> /
NUMTODSINTERVAL(.172222,'DAY')
---------------------------------------------------------------------------
NUMTODSINTERVAL(.183332998,'DAY')
---------------------------------------------------------------------------
+000000000 04:07:59.980800000
+000000000 04:23:59.971027200
[Updated on: Wed, 19 March 2014 09:32] by Moderator Report message to a moderator
|
|
|
|
Re: Time stored as a NUMBER field [message #610396 is a reply to message #610357] |
Wed, 19 March 2014 13:56 |
|
LKBrwn_DBA
Messages: 487 Registered: July 2003 Location: WPB, FL
|
Senior Member |
|
|
Quote:. . . How can I transform this field so I can actually analyze the field as a time value?. . . and
... I paste the value in Excel and format the cell as time
The fact that they show within excel as 4:08 AM and 4:24 AM does not mean he wants them that way.
[Updated on: Wed, 19 March 2014 13:58] Report message to a moderator
|
|
|
Re: Time stored as a NUMBER field [message #610398 is a reply to message #610396] |
Wed, 19 March 2014 14:02 |
|
Michel Cadot
Messages: 68729 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:How can I transform this field so I can actually analyse the field as a time value?
Quote:For example
.172222 shows as 4:08 AM
.183332998 shows as 4:24 AM
Nothing ambiguous for me.
Otherwise what could be the question and the purpose of the topic?
[Updated on: Wed, 19 March 2014 14:03] Report message to a moderator
|
|
|