Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa SQL Find the Running time in sql***
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Pranesh
Find the Running time in sql***
0 Answer(s)      3 years and 11 months ago
Posted in : SQL


I have 10 backend jobs in sql which runs at different time intervals. Sample data is shown below

Table name:- Job_Run

Job Name start time job_1 22/10/2010 18:20:00 job_2 22/10/2010 17:30:00

I want to find the running time of both the jobs. (i.e when i run the query it should show me how long job has been running)

Eg:- Lets consider the sysdate as 22/10/2010 20:00. I need the output to be displayed as 1hr 40 min for Job_1 and 2hr 30 min for Job 2

Could you please help me on this?


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com