can we call a procedure into another procedure?If yes means
how you can pass the perameters for the two procedures?
Answers were Sorted based on User's Feedback
Answer / madhuri
We can call a procedure into another procedure.
create or replace procedure proc1(empno number) is
begin
proc2(20,'CLERK');
end;
When we execute proc1 as follows
exec proc1(7891);
it will execute proc1 and proc2 as well
Is This Answer Correct ? | 7 Yes | 6 No |
Answer / swapna
while creating a procedure body we can call other procedure
in that body
for example if your creating the procedure body p1 we can
call the procedure p2 in the procedure body p1
syntax
create or replace procedure p1(a number) is
b number;
begin
p1(10);-- calling first procedure
end;
when you execute procedure p1
exec p1(10) -- it will execute both p1 and p2
Is This Answer Correct ? | 9 Yes | 9 No |
What is difference between Procedures and Functions ?
What is the difference between mdf and ndf files?
write a query to delete similar records in same table
Q1.all the depts which has more then 10 empls? Q2.all the dept which does not have any emply? Q3 all the emp which does not have any dept? Q4 get all the emply detais with the dept details it dept is exit otherwise any emp details? Q5 how to debugg the dynamic sql and packages?
what is indexing, searching and user interface?
What are the types of triggers in sql?
Can we use insert statement in function?
How will we see framework of a table?
C. Normalize the following data up to the 3rd Normal form. Create the tables and insert the data given. Emp_ID Name Dept_Name Salary Course_Title Date_Completed 100 Adam Marketing 48,000 SPSS 6/19/2008 Surveys 10/7/2008 140 Bob Accounting 52,000 Tax Acc 12/8/2008 110 Cathy IT SQL Server 1/12/2008 C# 4/22/2008 190 Dan Finance 150 Emily Marketing 55,000 SPSS 6/16/2008 42,000 Analysis 8/12/2008 Queries 1. Find all Names who have completed the SPSS Course. 2. Find employee with max salary. 3. Find employee with 2nd max salary. 4. Find all employees in Dept “Marketing”. 5. Find all the employees who have taken more than 2 courses. 6. Find all the employees who have completed the courses before month of September.
What is dml and ddl?
What is the advantage of nosql?
Write the command to remove all players named sachin from the players table.