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:
Posts (Atom)
The AI Driven Software Developer, Optimize Innovate Transform
The AI-Driven Software Developer: Optimize, Innovate, Transform": AI Transformation in Software Development : Understand how AI is re...

-
What is HTTP? HTTP is stands for Hypertext Transfer Protocol. HTTP offers set of rules and standards for web browsers & servers ...
-
In web.xml file add this , <context-param> <param-name>primefaces.THEME</param-name> <par...