0% found this document useful (0 votes)
16 views2 pages

Assignment 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

Assignment 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIVERSITY OF THE FREE STATE

Department of Computer Science


and Informatics

CSIS2634

Assignment 1

General instructions

Each student must complete the assignment on their own. Absolutely no group work or cooperation of any
nature is allowed. Students found guilty of such transgressions will immediately receive an incomplete for the
module they are registered for.

Answer each of the following questions

Submission instructions

Consolidate your answers into a single Word document and upload the document to Blackboard.

Submission date: 12 March @17:00

Question 1

What type of relationship is modelled for each of the following scenarios?

a)

AUDIOBOOK NARRATOR

b)

KEYBOARD KEY

c)

PILOT PLANE

Question 2

Given the following scenario:

A document has one or more paragraphs. Each paragraph has one or more sentences.

1|Page
Identify all the required entities and draw a data model indicating the type of relationships between
the entities

Question 3

Given the following scenario:

A telephone book has many telephone numbers. Each number belongs to an organisation (an
organisation may have more than one number). A number belongs to only one organisation. An
organisation is either a person or a business and must be indicated as such in the telephone book.

Identify all the required entities and draw a data model indicating the type of relationships between
the entities

Question 4

Suppose the following database is given:

EMPLOYEE: ROUTE:
EMPLOYEE_ID EMP_FNAME EMP_LNAME
ROUTE_ID ROUTE_DESC
14 Mpho Mandela
1 New York City
15 Jane Doe
2 Bangkok
16 Ruellardo Randy
3 Paris
17 Smith John
20 Smith Jeremy

CABIN_CREW: AIRPLANE:

EMPLOYEE_ID AIRPLANE_ID AIRPLANE_ID PLANE_DESC ROUTE_ID


15 2 1 Airbus A330 5522 1
15 3 2 Airbus A330 1254 2
16 1 3 Airbus A330 7733 3
17 4 4 Airbus A330 8899 1
17 3
17 2
20 3

a) For each table in the database, identify the primary and the foreign key
b) Do the tables exhibit entity integrity? Motivate your answer.
c) Do the tables exhibit referential integrity? Motivate your answer.
d) Draw an ERD (show the attributes as well) showing all the tables and the relationships
between them.

2|Page

You might also like