Professional Documents
Culture Documents
Employee Table
Project Table
2. Write a Stored Procedure to retrieve records (rows) from above two tables.
3. Write a Stored Procedure to retrieve emp_name, salary where salary is greater than
60000 and salary is passed as a parameter to the procedure.
4. Write a Stored Procedure to declare an integer variable and set value as 100 and display
the variable.
5. Delete the above procedure (4th question).
6. Write a Stored Procedure to Display the count of projects that are assigned emp_name =
’Shiva’ pass emp_name as a parameter.
7. Display all the Stored Procedures that are created till now.
8. Write a Stored Procedure to display if the given integer is positive or negative (integer is
the parameter).
-- getSign(IN input INT(10)) -- input format
1 if the number is positive
-1 if the number is negative
0 if the number is zero
9. Write a Stored Procedure for given integer print all the even numbers till the given input.
-- printEven(IN input INT(10))
If given input is between 700000 and 500000 then incomelevel is ‘Grade II’
12. Retrieve emp_name, salary, incomelevel from employee table using above stored
function
13. Display all the Stored Procedures with a pattern which has nine letters in its name.
15. Delete all Stored Procedures that are created in this assignment.