Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Part B

Question 1

a)

- ySQL, PostgreSQL, Microsoft Access, SQL Server, FileMaker, Oracle, RDBMS

b)

-DBMS stores definitions of data elements and relationships (metadata) in a data dictionary

-DBMS creates and manages complex structures required for data storage

-DBMS transforms data entered to conform to required data structures

-DBMS creates a security system that enforces user security and data privacy

-DBMS uses sophisticated algorithms to ensure concurrent access does not affect integrity

DBMS provides backup and data recovery to ensure data safety and integrity

Question 2

a)

- One company can be choose by many student.

- Each student can choose one company.

b)

Question 3

b) i)
Table name Primary key Foreign key
STAFF Staff_No Department_Code
VEHICLE Null Staff_No
DEPARTMENT Department_Code Null

b) ii)

Table STAFF

Yes. The reason is because the referential integrity constraint states that Department_Code in the Staff
table must match a valid Department_Code in the Department table.

Table VEHICLE

Yes. The reason is because when setting up referential integrity it is important that the PK and FK have
the same data types and come from the same domain

Question 5

a)

-Partial dependencies are when the key is composite and some but not all of the columns of the key
determine another attribute.

-Transitive dependencies always relate to attributes outside of candidate keys.

b)

1NF (A1, A2, A3, A4, A5, A6)

2NF

Partial depency

(A1 -> A3, A4)

(A2 -> A5, A6)


Transitive depency

(A5 -> A6)

3NF

A(A1, A3, A4)

B(A2, A5, A6*)

c) i)

- 0NF because PK is not define yet and it contains repeating group

ii)

- EmpNo + UnitCode + SubjCode

iii)

- 1NF
Lecture (EmpNo, EmpName, EmpPost, UnitCode, UnitName, SubjCode, SubjName, CreditHour,
RoomNo)

- 2NF
Lecture (EmpNo, EmpName, EmpPost)
Unit (UnitCode, UnitName)
Subject (SubjCode, SubjName, CreditHour, RoomNo)

- 3NF
Lecture (EmpNo, EmpName, EmpPost)
Unit (UnitCode, UnitName)
Subject (SubjCode, SubjName, CreditHour, RoomNo)
Room (RoomNo, EmpNo*)

Question 6

a)

- Requirement gathering, Analysis, Logical Design, Implementation(edited)


b)

- The difference between corrective and perfective maintenance is corrective maintenance concerned
with the change in the software that takes place to make the software adaptable to new environment to
run the software on a new operating system. The perfective maintenance is concerned with the change
in the software that occurs while adding new functionalities in the software

Part C

Question 1

a)

You might also like