How can we schedule the procedure to run automatically ?
Answers were Sorted based on User's Feedback
Answer / mahesh
By using dbms_job (buitin package upto oracle 9i)
and using dbms_scheduler (oracle 10G onwrds)
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / nakul.v
We can Schedule a Stored Procedure to run automatically
once we attach the Procedure to a Package and use the
Built – In DBMS_JOB Package.
DBMS_JOB.SUBMIT & DBMS_JOB.RUN will help us to Schedule a
Stored Procedure
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / swapna
We Can Schedule The Procedure Run Automatically By Using
Packages.
Is This Answer Correct ? | 6 Yes | 5 No |
What is sqlerrd?
how to check the 3rd max salary from an employee table? One of the queries used is as follows: select sal from emp a where 3=(select count(distinct(sal)) from emp b where a.sal<=b.sal). Here in the sub query "select count(distinct(sal)) from emp b where a.sal<=b.sal" or "select count(distinct(sal)) from emp b where a.sal=b.sal" should reveal the same number of rows is in't it? Can any one here please explain me how is this query working perfectly. However, there is another query to get the 3rd highest of salaries of employees that logic I can understand. Pls find the query below. "select min(salary) from emp where salary in(select distinct top 3 salary from emp order by salary desc)" Please explain me how "select sal from emp a where 3=(select count(distinct(sal)) from emp b where a.sal<=b.sal)" works source:http://www.allinterview.com/showanswers/33264.html. Thanks in advance Regards, Karthik.
How can we overcome recursive triggers in SQL?
what are the properties and different types of sub-queries? : Sql dba
What is the difference between null value, zero, and blank space?
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
define sql update statement ? : Sql dba
wht is the difference between truncat,drop in sqlserver wht is the difference between function and stored procedure
i have some prob lem to tell me about my self in interview first round ...
Can a table have no primary key?
How can i insert data inro a table with 3 columns using FORALL?
how would you get the current date in mysql? : Sql dba