0% found this document useful (0 votes)
36 views

Database Systems Design One Exam

This document contains 7 questions regarding database concepts and design. It asks the reader to define terms, explain database concepts, construct entity relationship diagrams, write SQL statements to create tables and capture constraints, discuss database normalization forms and anomalies, differentiate between databases and database management systems, and write queries. The questions cover a wide range of foundational database topics.

Uploaded by

stephen
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Database Systems Design One Exam

This document contains 7 questions regarding database concepts and design. It asks the reader to define terms, explain database concepts, construct entity relationship diagrams, write SQL statements to create tables and capture constraints, discuss database normalization forms and anomalies, differentiate between databases and database management systems, and write queries. The questions cover a wide range of foundational database topics.

Uploaded by

stephen
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Section A – (20 marks)

Answer all questions in this section.

Question one

a) Define data modelling (02 marks)


b) Give the syntax for creating and activating a database. (04 marks)
c) Explain the following terms as used in table operations
i. Table name (02 marks)
ii. Table constraints (02 marks)
iii. Table attributes (02 marks)
d) Mention the uses of database query languages. (04 marks)
e) Define the following terms as used in database design
i. Schema (02 marks)
ii. Table (02 marks)

Section B – (80 marks)

Answer only four questions from this section

Question two

a) Explain any seven advantages of database management systems. (07 marks)


b) Give three disadvantages of Database Management Systems. (03 marks)
c) Describe disadvantages of traditional file systems (10 marks)

Question three

a) Provide definition for the following terms and give one example of each
i. Database. (02 marks)
ii. Database management system. (02 marks)
iii. Database objects. (02 marks)
iv. Attributes. (02 marks)
v. Relationships. (02 marks)
b) Outline the steps taken when designing a database. (10 marks)

1 of 3
Question four

a) Explain the following terms with a real example (02 marks each)

Attributes, domain, relation cardinality, participation constraints and relation degree.

b) Each of the following plays an important role in representing information about the real
world in a database. Explain briefly; the data manipulation language and data definition
language. (02 marks)
c) What is the relevance for the following keys in relation database model; primary key,
composite key, foreign key and supper key (08 marks)

Question five

a) Using the following description construct an E.R diagram. (08 marks)


Information needs to be stored about books. Its ISBN (international standard book
number) uniquely identifies each book. Other information about a book includes its title
and publication date. In addition to book information, there is also information stored
about the book’s publisher. This includes a unique publisher identifier, publisher name
and publisher address. A single publisher can only publish a book. Information on the
authors of a book is also stored. This information includes authors’ social security
number, name and address. Either a single author or several authors can a write any
single book. When the book is printed, it is sent to a printer. Information about the printer
includes a unique printer identifier, printer name and address. A contract is written that
indicates the number of books the printer will print and the printing deadline the printer
needs to meet. At times a single book might be contracted to several printers if the
quantity required to be printed exceeds the printers production capacity.
Hint: identify all the possible entities from this problem set first.

b) What are the two kind of relationship participation in ER modelling (02 marks)
c) Considering the problem set in question five a) above, write SQL statements to create the
corresponding relation/tables and capture as many of the constraints as possible. If you
cannot capture some constraints, explain why. (10 marks)
2 of 3
Question six

a) What is database normalization? (02 marks)


b) Use example to discuss the different forms of Normalization. (16 marks)
c) Give two examples of database Anomalies. (02 marks)

Question seven

a) Differentiate between the terms database and database management systems. (05 marks)
b) Create the following table and add the stated data into it: SALES DATA (05 marks)

SALES id SDdate FOODid amount Employee


name
S001 31/5/2023 1 3000 Ronald

S002 31/5/2023 2 5000 Marvin

S003 30/4/2023 1 6000 Kate

S004 30/4/2023 2 10000 Jane

c) Create queries and the associated output to display: (10 marks)


i. A list of sales data items (salesid, amount) sold on 31/5/2023
ii. List of employees (employeename, foodid) who sold food item with id = 2
iii. A list of employees and their total sales

END

3 of 3

You might also like