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 :: automated psql csv export script on windows 
Sql :: mysql reset wp_options 
Sql :: how to drop check constraint in sql 
Sql :: show tables in oracle 
Sql :: oracle apex run 404 
Sql :: drop unique constraint 
Sql :: insert new department and employee record 
Sql :: What is the library that should import to use all functional database features in SQLite? 
Sql :: migration to create a gender in the database table 
Sql :: Convert LDAP Epoch to Date 
Sql :: mysql let join 
Sql :: mysql beautifier terminla 
Sql :: allow null sql 
Sql :: kill thread 
Sql :: oracle list subpartitions 
Sql :: linq to sql converter online 
Sql :: null plus 1 in sql 
Sql :: stored procedure function relation 
Sql :: How to pass list as parameter in SQL query 
Sql :: modulous in sql 
Sql :: john the ripper mysql 
Sql :: how to read the potentail error messages in ssis package 
Sql :: codeigniter 3 get best-selling products 
Sql :: mysql select bottom 10 rows 
Sql :: pl sql constraint user function 
Sql :: nodejs sql get one to many relationship as array 
Sql :: pl/pgsql declare variable 
Sql :: avoid duplicate in one to many relationship join in sql 
Sql :: how to use mysql_tzinfo_to_sql on windows 
Sql :: pl sql trigger update sysdate 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =