Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle convert run duration to number

-- Duration between 2 timestamps
SELECT (extract(DAY FROM TIME2 - TIME1) * 24 * 60 * 60) 
           + (extract(HOUR FROM TIME2 - TIME1) * 60 * 60) 
           + (extract(MINUTE FROM TIME2 - TIME1) * 60) 
           + extract(SECOND FROM TIME2 - TIME1)
FROM DUAL;
Comment

oracle run_duration to number

SELECT JOB_NAME,
       avg(extract(DAY FROM run_duration) * 24 * 60 * 60
               + extract(HOUR FROM run_duration) * 60 * 60
               + extract(MINUTE FROM run_duration) * 60
               + extract(SECOND FROM run_duration))
FROM DBA_SCHEDULER_JOB_RUN_DETAILS
WHERE JOB_NAME = 'my_job_name'
GROUP BY JOB_NAME;
Comment

PREVIOUS NEXT
Code Example
Sql :: calculate percentage in sql 
Sql :: sql convert date format 
Sql :: 11:04:35 PM [mysql] Error: MySQL shutdown unexpectedly. 11:04:35 PM [mysql] This may be due to a blocked port, missing dependencies, 
Sql :: lack create session privilege oracle 
Sql :: mysql repeated values 
Sql :: sql sum show 0 result 
Sql :: create temporary table sql 
Sql :: sql quote in string 
Sql :: influxdb list all tags for a measurement 
Sql :: createdb with postgresql on ubuntu 
Sql :: delete row by id mysql 
Sql :: replace divide by zero error with 0 in sql 
Sql :: sql delete column 
Sql :: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null 
Sql :: change column name mysql 
Sql :: postgres recursive function 
Sql :: update column value in sql 
Sql :: sqlite show columns 
Sql :: how to pass dynamic column name in sql query 
Sql :: sql power function 
Sql :: delete from IN subquery 
Sql :: delete from inner join sql 
Sql :: mysql find_in_set join 
Sql :: Add colum sqlite table 
Sql :: insert query in sql 
Sql :: mysql not empty 
Sql :: database get 10 user aleatory 
Sql :: sql select all tables from database change url 
Sql :: insert into sql 
Sql :: mysql grant user permissions 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =