I have a table in which i have some data related to oracle job which executes some procedures.Here is the query and data format.
SELECT SRLNUM, TABLE_NAME, PURPOSE, LAST_UPDATE, DUR,
TO_DATE (TO_CHAR (LAST_UPDATE, 'MM/DD/YYYY HH:MI:SS AM'),'MM/DD/YYYY HH:MI:SS AM')+ DUR / (24 * 60) RUNTIME
FROM V_DASHJOBS
Here is the data of table which have job details

Question is that is there any way that i can detect using query that job has not still run on its RUNTIME and also if job has not run on its RUNTIME then flag 0 should return and if has run then 1 should return.
I am calculating RUNTIME by adding DUR to last_update and also i want to give a relax of 30 minutes to job that job can be run 30 minute late from actual runtime
We can do arithmetic with Oracle’s DATE datatype, so your calculation of RUNTIME is too complex.
This query takes your query and adds a CASE statement to compare the derived RUNTIME with the current datetime. If I have properly understood your requirement, this will allow you to determine whether a job has run as scheduled.
The second CASE() statements adds an extra half-hour to the derived runtime, to allow for your supplementary requirement, “that job can be run 30 minute late from actual runtime”.