CN3032 Databases Tutorial
CN3032 Databases Tutorial
These questions are based on chapter 8 of the recommended text book (An Introduction to
Information Systems by David Whiteley)
4. Popular databases such as Microsoft Access and Oracle are based on which of the following
paradigms?
a. Hierarchical
b. Network
c. Object-oriented
d. Relational
e. None of the above
5. Which of the following relational algebra functions select columns from an existing table?
a. Restrict
b. Project
c. Join
d. Select
e. None of the above.
6. Complete the following sentence. Secondary storage is any ______________ to which the
computer can write data.
a. medium
b. material
c. method
d. model
e. None of the above
7. Complete the following sentence: With a database, we are attempting to build a data
__________?
a. framework
b. platform
c. structure
d. warehouse
e. None of the above
10. The three traditional database paradigms are hierarchical, relational and __________?
a. network
b. neutral
c. Alphanumerical
d. sequenced
e. None of the above
Section B Comprehension questions
1. The University Student Record System uses a Database Management System (DBMS) to
store details of students and their progress through their studies.
a. What is a DBMS?
It is a file management system that collects all the organisation data within one file
and provides sophisticated way to access that data.
b. Explain the advantages and disadvantages of having student records stored on a
database
Advantages
Inconsistency can be avoided: Duplicating data and making changes are
made at one site, which is not propagated to the other site, it gives rise to
inconsistency and the two entries.
Improved data access: Different users can access or retrieve data on
demand using the applications and interfaces provided by the DBMS
Disadvantage
Cost of DBMS: The cost varies significantly, depending on functionality
provided and there is also the recurrent annual maintenance cost.
Size: The functionality that makes the DBMS may be extremely large piece of
software, occupying many megabytes of disk space and requires a lot of
memory to run efficiently
2. SQL queries employ the relational algebra concepts of select, restrict and join. Explain each
of these concepts and their use in extracting information from a database.
Select: The SELECT statement is used to select data from a database.
Restrict: A value cannot be updated or deleted when a row exists in a referencing or child
table that references the value in the referenced table.
Join: A JOIN clause is used to combine rows from two or more tables, based on a related
column between them.
3. For the order processing database, used as in an example in this chapter, which relational
algebra function would you use to:
a. List all products where the stock (prodStock) is 10 or less
SELECT * From product Where proStock<=10;
b. List the product code (prodCode) and warehouse location (whseLocn) of all
products.
SELECT FROM Product where prodCode, whselocn
c. List all products and include the corresponding product category data (prodcatDesc)
for each product