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 :: john the ripper mysql 
Sql :: SQL Server log file truncate - Source :NAYCode.com 
Sql :: apikey in pl sql 
Sql :: what i ssql 
Sql :: create query in where clasue 
Sql :: how to read the potentail error messages in ssis package 
Sql :: limiting query result using where in sql 
Sql :: suse start MySQL 
Sql :: subquery postgresql syntax 
Sql :: alter check command 
Sql :: classement rang mysql 7 
Sql :: How to get distinct sets of rows using SQL (Oracle)? 
Sql :: pl sql constraint user function 
Sql :: i wanted to select among the rows the highest value in mysql 
Sql :: insert column rake 
Sql :: generate sql trigger through ef migration 
Sql :: element is equal one of values sql server 
Sql :: avoid duplicate in one to many relationship join in sql 
Sql :: MySQL - How to find word with the most similar beginning 
Sql :: ms sql filter all sympbol 
Sql :: postgresql 
Sql :: Reduce size of SQL server log file truncate - Source :NAYCode.com 
Sql :: Using the Cloud SQL Auth proxy to connect to multiple instances 
Sql :: oracle query archivemode 
Sql :: utiliser sql ligne de commande 
Sql :: clickhouse greatest non-aggregate 
Sql :: select from 3 tables one is empty 
Sql :: float in sql 
Sql :: psql database does not exist 
Sql :: sql select all from one table and one column from another 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =