Question: QUESTION 1 ( 3 0 MARKS ) 1 . 1 What are the six phases of the Database Analysis Lifecycle and what are the activities

QUESTION 1(30 MARKS)
1.1 What are the six phases of the Database Analysis Lifecycle and what are the activities that occur in
each phase? (10)
1.2 Consider the table below.
Convert the report into a set of BCNF tables. Describe each step in detail and show the relational
schema associated with each step. (20)
EMP_NUM EMP_FNAME EMP_LNAME JOB_DESC BENEFIT_1 BENEFIT_2 BENEFIT_3 PROJ_ID PROJECT
200 Luke Shaw Manager Company
Car
Medical
Aid
13th
Cheque
445 Sub Zero
200 Luke Shaw Manager Company
Car
Medical
Aid
13th
Cheque
555 Scorpion
300 Matthew Matthews Marketing Company
Car
445 Sub Zero
500 John Staples Marketing Company
Car
445 Sub Zero
600 Samuel Jackson Accountant 13th
Cheque
445 Sub Zero
600 Samuel Jackson Accountant 13th
Cheque
555 Scorpion
QUESTION 2(30 MARKS)
2.1 XYZ Corporation, an IT and Digital media company is restructuring their organisation, part of which
includes redesigning their database into a relational database. You have been tasked with redesigning
the new database. You have been given the following business rules, a manager can be a project
manager or project lead. A project manager oversees a department, a project lead oversees a project.
An employee can be a programmer or designer. A programmer must be front-end or back-end or both.
A designer must always have a project they are working on.
Draw the EERD for XYZ corporation and include all the necessary attributes. (30)
QUESTION 3(30 MARKS)
Suppose you have the following table named Student. The table is stored in a Database called
School.
Student
Student_ID Student_Name Student_Surname Student_Phone Student_Address
1234 Erling Sule 07112345673321st Avenue
5678 Cristiano Ronaldo 0724567890182nd Street
9101 Abedi Pele 07378945608 Fauna Drive
Write SQL code to achieve the following.
3.1.1 Create a database named school and a table named student (the table must be created within
the School Database)(5)
3.1.2 Insert all the records shown on the table above. (5)
3.1.3 Insert a new record with the Student_ID 9999(use your own values for the rest of the columns)
(5)
3.1.4 List all the records where the Student_Name has a letter e.(5)
3.2 Assume you have the following entity.
Write a SQL query to list each employee name and surname, their weekly average and the monthly
average. Show a field called OverallAverage which is the weekly average + monthly average. Sort
the employees alphabetically. (10)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!