1.Oracle has a data type TIMESTAMP,
which can also represent a date (with time). If you subtract TIMESTAMP values, you get an INTERVAL .
To extract numeric values ,use the EXTRACT function.
select
extract( day from diff ) Days,
extract( hour from diff ) Hours,
extract( minute from diff ) Minutes ,
( extract( day from diff ) 24*60*60*60 + extract( hour from diff )60*60*60 +
extract( minute from diff )*60*60 ) TotalMiliSecResult
from (
select ( CAST( action_time as timestamp) - CAST( idle_time as timestamp) ) diff
from mwt_idle_wallet
);
Version :- 1.0.0
Saturday, July 20, 2019
Subscribe to:
Comments (Atom)
Some interesting things to explore more
Here some some things to study more , How Google Search works https://developers.google.com/search/docs/fundamental...
-
"Injection attacks": Common Types of Injection Attacks : There are several types of injection attacks, including SQL injection,...
-
The AI-Driven Software Developer: Optimize, Innovate, Transform": AI Transformation in Software Development : Understand how AI is re...
-
With Java 25 , One interesting changes can view is JEP 512, "Compact Source Files and Instance Main Methods," significa...