Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 ( Marks: 1 0 ) Discuss the reasons why databases have advantages over manual data processing systems. Question 2 ( Marks: 5 )

Question 1(Marks: 10)
Discuss the reasons why databases have advantages over manual data processing systems.
Question 2(Marks: 5)
A database is divided into layers or tiers to manage data effectively. Briefly explain the differences
between the two database architecture tier types.
Question 3(Marks: 10)
PL/SQL provides a user with many features. Briefly explain the following features:
1. Block Structure (3);
2. Procedural Language Capabilities (3);
3. Complete Portability (2);
4. Tight Integration (2).
Question 4(Marks: 10)
Consider the following PL/SQL query:
Make or replace procedure Student_Count
(course_name INPUT tblResults.Course%TYPE,
stud_count SEND tblResults.Results%TYPE)
IS
BEGIN
select count(r.results)
into stud_count
from tblResults r
where r.Course = course_name;
END;
set serveroutput on;
declaring
stud_count tblResults.Results%OF_TYPE;
begin
16; 17; 18; 192019
The Independent Institute of Education (Pty) Ltd 2019
Page 3 of 3
Count_Student('DISD3',stud_count);
dbms_output.put_line('---------------------------');
dbms_output.put_line('Number of students are: '|| student_count);
end;
The code above has seven errors. Identify at least five of the errors and rewrite the code so that it
would produce a valid output.
Question 5(Marks: 10)
Oracle provides a database developer with the functionality to create procedures and functions.
Discuss any five differences between procedures and functions.
Question 6(Marks: 5)
Explain the three advantages of implementing exceptions as a means of handling errors.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions