You are on page 1of 1

NVQ 5 in ICT 2018 Semester 02

Subject Database System 11


Covered Topics Topic 3
Assignment No Assignment 3
Issued Date 2018.12.10
Due Date 2018.12.31
Submission Hard Copy to instructor
Method Softcopy /scanned image to LMS

1. Compare & contrast PLSQL with SQL using examples. (10 marks)

2. What is the purpose of a conditional control structure in PL/SQL & show them using examples?
(20 marks)

3. State How a PLSQL Code Construct with (sections of PLSQL code both optional & Compulsory)
Support your answer with examples. (10 marks)

4. Why we use savepoint, Rollback, commit statements in SQL Codes? (10 marks)

5. Compare stored procedure & functions with examples to show the difference of them. (10 marks)

6. What is exception handling in PL/SQL block? Give example (10 marks)

7. Describe when you can use data base triggers using a practical situation. (05 marks)

8. Provide coding for following (25 marks)


o Create table that contains student_id number(4), marks number(3),grade varchar2(3)
as student_assignment_marks
o Write a procedure to calculate the grades of all students & update the grade column of
the table according to the following criteria
 If marks between 100 & 80 grade will be A
 If marks between 89 & 69 grade will be B
 Others F
o When update the above grades a trigger should fire saying someone is trying to
updating the records & display the date & user account name
o Write a function to return the grade when you pass the student id as a parameter at the
time of function calling.
o Show the coding which you use to invoke above function & procedure.

You might also like