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



can we call a procedure into another procedure?If yes means how you can pass the perameters for t..

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

can we call a procedure into another procedure?If yes means how you can pass the perameters for t..

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

Post New Answer

More SQL PLSQL Interview Questions

What is difference between Procedures and Functions ?

6 Answers   Hi Caliber IT,


What is the difference between mdf and ndf files?

0 Answers  


write a query to delete similar records in same table

13 Answers   TCS,


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?

2 Answers  


what is indexing, searching and user interface?

1 Answers   HCL,






What are the types of triggers in sql?

0 Answers  


Can we use insert statement in function?

0 Answers  


How will we see framework of a table?

2 Answers   Accenture,


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.

0 Answers  


What is dml and ddl?

0 Answers  


What is the advantage of nosql?

0 Answers  


Write the command to remove all players named sachin from the players table.

0 Answers  


Categories