100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

INF2603 Assignment 5 (COMPLETE ANSWERS) 2025 (865742) - DUE 5 September 2025

Rating
5.0
(1)
Sold
4
Pages
13
Grade
A+
Uploaded on
29-08-2025
Written in
2025/2026

Without using chartGP and examples from the book provide an example to emphasize your case, describe the situations when a 3rd NF relation is in BCNF and when it is not. Because you are a registered student at UNISA and you have classmates who are your friends, please write SQL code to enter your own correct information and also the information of anther student into the STUDENT table. That is 2 records. For the student number of your friend you can use What is the difference between a column constraint and a table constraint? (What three join types are included in the OUTER JOIN classification? (6) What is a strong (or identifying) relationship? (2) Why is a table whose primary key consists of a single attribute automatically in 2NF when it is in 1NF? (2) Without using chartGP and examples from the book provide an example to emphasize your case, describe the situations when a 3rd NF relation is in BCNF and when it is not. Explain what is a disjoint subtype? And give an example. (4) What three join types are included in the OUTER JOIN classification? (6) What is a strong (or identifying) relationship? (2) Why is a table whose primary key consists of a single attribute automatically in 2NF when it is in 1NF? (2) f. What is metadata? (2) g. Explain what is physical independence in data models? (2) Using the following transport business rules, draw the appropriate ERD using UML notation for a unique e-hailing taxi service in Mpumalanga. Make sure that you include all appropriate entities, relationships, and multiplicities: • One driver can be assigned to multiple taxis over time, but each taxi has only one driver at a time • Each customer can have multiple rides, and the e-hailing services offer sharing options for the customers • One taxi can be used for multiple rides • Each ride has one payment, and the customer can decide to cancel and the payment will be reversed Create an ER model for each of the following descriptions: • A large organization has several parking lots, which are used by staff. • Each parking lot has a unique name, location, capacity, and number of floors (where appropriate). • Each parking lot has parking spaces, which are uniquely identified using a space number. • Members of staff can request the sole use of a single parking space. Each member of staff has a unique number, name, telephone extension number, and vehicle license number. 4 • Represent all the ER models described in parts (a), (b), (c), and (d) as a single ER model. Provide any assumptions necessary to support your model. Make sure that you include all appropriate entities, relationships, and multiplicities. i. Write a SQL code to display the employees names, year of birth, and the bonus for each employee. Sort the results by the employee_id as in the table below. (5) Table 5.1: Employee_ID EmployeeNames_BirthYears Dept_ID Bonus Bontle Nxumalo (1982) 2305 Mpho Nkomo (1989) 2405 R24,000 Mahlako Nkomo (1984) 6605 Tshepi Phahlane (1986) 2305 R53,000 ii. Write the SQL code to delete the row for the employee who was paid R24,000 bonus. (2) 5.b. In the following questions, you will use the data of UNISA student registration information. i. Write the SQL code that will create the STUDENT table provided below. This table is a subset of the UNISA student registration database. (Note that the DEPT_CODE is the FK to DEPARTMENT, also use your own Data Declarations). (4) Table 5.2: The attributes of the Student Entity STUDENT StudentID {PK} DEPT_CODE {FK} STUD_Gender STUD_fname STUD_lname STUD_INITIAL STUD_EMAIL ii. Because you are a registered student at UNISA and you have classmates who are your friends, please write SQL code to enter your own correct information and also the information of anther student into the STUDENT table. That is 2 records. For the student number of your friend you can use . The Finance Department of SOUTHERN AFRICAN political party stores the Bonus field in the Employee table because a bonus is an attribute associated with employees. Given that information, use SQL commands to answer questions 4.a.i. i. Write the SQL code to delete the row for the employee who was paid R24,000 bonus from the below table Employee. (4) Employee_ID Dept_ID Bonus R24, R53,000 4.b. In the following questions, you will use the data of UNISA student registration information. i. Write the SQL code that will create the STUDENT table provided below. This table is a subset of the UNISA student registration database. (Note that the DEPT_CODE is the FK to DEPARTMENT, also use your own Data Declarations). (5) Table: The attributes of the Student Entity STUDENT StudentID {PK} DEPT_CODE {FK} STUD_Gender STUD_fname STUD_lname STUD_INITIAL STUD_EMAIL What is a strong (or identifying) relationship? (2) Why is a table whose primary key consists of a single attribute automatically in 2NF when it is in 1NF? (2) Without using chartGP and examples from the book provide an example to emphasize your case, describe the situations when a 3rd NF relation is in BCNF and when it is not. Explain what is a disjoint subtype? And give an example. (4) What three join types are included in the OUTER JOIN classification? (6) What is a strong (or identifying) relationship? (2) Why is a table whose primary key consists of a single attribute automatically in 2NF when it is in 1NF? (2) f. What is metadata? (2) g. Explain what is physical independence in data models? (2) Using the following transport business rules, draw the appropriate ERD using UML notation for a unique e-hailing taxi service in Mpumalanga. Make sure that you include all appropriate entities, relationships, and multiplicities: • One driver can be assigned to multiple taxis over time, but each taxi has only one driver at a time • Each customer can have multiple rides, and the e-hailing services offer sharing options for the customers • One taxi can be used for multiple rides • Each ride has one payment, and the customer can decide to cancel and the payment will be reversed Create an ER model for each of the following descriptions: • A large organization has several parking lots, which are used by staff. • Each parking lot has a unique name, location, capacity, and number of floors (where appropriate). • Each parking lot has parking spaces, which are uniquely identified using a space number. • Members of staff can request the sole use of a single parking space. Each member of staff has a unique number, name, telephone extension number, and vehicle license number. 4 • Represent all the ER models described in parts (a), (b), (c), and (d) as a single ER model. Provide any assumptions necessary to support your model. Make sure that you include all appropriate entities, relationships, and multiplicities. i. Write a SQL code to display the employees names, year of birth, and the bonus for each employee. Sort the results by the employee_id as in the table below. (5) Table 5.1: Employee_ID EmployeeNames_BirthYears Dept_ID Bonus Bontle Nxumalo (1982) 2305 Mpho Nkomo (1989) 2405 R24,000 Mahlako Nkomo (1984) 6605 Tshepi Phahlane (1986) 2305 R53,000 ii. Write the SQL code to delete the row for the employee who was paid R24,000 bonus. (2) 5.b. In the following questions, you will use the data of UNISA student registration information. i. Write the SQL code that will create the STUDENT table provided below. This table is a subset of the UNISA student registration database. (Note that the DEPT_CODE is the FK to DEPARTMENT, also use your own Data Declarations). (4) Table 5.2: The attributes of the Student Entity STUDENT StudentID {PK} DEPT_CODE {FK} STUD_Gender STUD_fname STUD_lname STUD_INITIAL STUD_EMAIL ii. Because you are a registered student at UNISA and you have classmates who are your friends, please write SQL code to enter your own correct information and also the information of anther student into the STUDENT table. That is 2 records. For the student number of your friend you can use . The Finance Department of SOUTHERN AFRICAN political party stores the Bonus field in the Employee table because a bonus is an attribute associated with employees. Given that information, use SQL commands to answer questions 4.a.i. i. Write the SQL code to delete the row for the employee who was paid R24,000 bonus from the below table Employee. (4) Employee_ID Dept_ID Bonus R24, R53,000 ii. Write a SQL code to change your email address from your mylife email address to a Gmail address. (4) iii. Write a SQL code to delete the STUDENT table from the database. (2) 4.c. Write a series of SQL statements to insert the data shown in the below figure: (10) Hint: Use 24-hour clock times as in 14:00 for 2:00pm. Create an ER model for each of the following descriptions: • A large organization has several parking lots, which are used by staff. • Each parking lot has a unique name, location, capacity, and number of floors (where appropriate). • Each parking lot has parking spaces, which are uniquely identified using a space number. • Members of staff can request the sole use of a single parking space. Each member of staff has a unique number, name, telephone extension number, and vehicle license number. 4 • Represent all the ER models described in parts (a), (b), (c), and (d) as a single ER model. Provide any assumptions necessary to support your model. Make sure that you include all appropriate entities, relationships, and multiplicities. Open University of Zambia Course Enrolment Database OUniZa database stores information about students, courses, and enrolments. Initially, the data might be stored in a single table like this: University Table: StudentID StudentName CourseID CourseName Instructor EnrolmentDate 1 Thato 101 Math Dr. Nxumalo 2 Lucas 102 History Prof. Mtsweni 1 Thato 103 Physics Prof. Chipa 3 Sam 101 Math Dr. Nxumalo Given that information, answer the following questions: a. If possible, transfer the unnormalized form to first normal form. (4) b. Using the answer to problem a, remove existing partial dependencies and transform the relation into 2nd normal form. (6) c. Remove transitive dependencies and transform the relations from 2nd normal form to 3rd normal form. (6) a. Without using chartGP and examples from the book provide an example to emphasize your case, describe the situations when a 3rd NF relation is in BCNF and when it is not. (4) b. Describe and illustrate using an example the process of attribute inheritance. (4) c. What is the difference between a column constraint and a table constraint? (4) d. Explain what is a disjoint subtype? And give an example. (4) e. What is a strong (or identifying) relationship? (2) f. Why is a table whose primary key consists of a single attribute automatically in 2NF when it is in 1NF? (2) g. What is metadata? (2) h. Explain what is physical independence in data models? (2) Without using chartGP and examples from the book provide an example to emphasize your case, describe the situations when a 3rd NF relation is in BCNF and when it is not. Because you are a registered student at UNISA and you have classmates who are your friends, please write SQL code to enter your own correct information and also the information of anther student into the STUDENT table. That is 2 records. For the student number of your friend you can use What is the difference between a column constraint and a table constraint? (What three join types are included in the OUTER JOIN classification? (6) What is a strong (or identifying) relationship? (2) Why is a table whose primary key consists of a single attribute automatically in 2NF when it is in 1NF? (2) Without using chartGP and examples from the book provide an example to emphasize your case, describe the situations when a 3rd NF relation is in BCNF and when it is not. Explain what is a disjoint subtype? And give an example. (4) What three join types are included in the OUTER JOIN classification? (6) What is a strong (or identifying) relationship? (2) Why is a table whose primary key consists of a single attribute automatically in 2NF when it is in 1NF? (2) f. What is metadata? (2) g. Explain what is physical independence in data models? (2) Using the following transport business rules, draw the appropriate ERD using UML notation for a unique e-hailing taxi service in Mpumalanga. Make sure that you include all appropriate entities, relationships, and multiplicities: • One driver can be assigned to multiple taxis over time, but each taxi has only one driver at a time • Each customer can have multiple rides, and the e-hailing services offer sharing options for the customers • One taxi can be used for multiple rides • Each ride has one payment, and the customer can decide to cancel and the payment will be reversed Create an ER model for each of the following descriptions: • A large organization has several parking lots, which are used by staff. • Each parking lot has a unique name, location, capacity, and number of floors (where appropriate). • Each parking lot has parking spaces, which are uniquely identified using a space number. • Members of staff can request the sole use of a single parking space. Each member of staff has a unique number, name, telephone extension number, and vehicle license number. 4 • Represent all the ER models described in parts (a), (b), (c), and (d) as a single ER model. Provide any assumptions necessary to support your model. Make sure that you include all appropriate entities, relationships, and multiplicities. i. Write a SQL code to display the employees names, year of birth, and the bonus for each employee. Sort the results by the employee_id as in the table below. (5) Table 5.1: Employee_ID EmployeeNames_BirthYears Dept_ID Bonus Bontle Nxumalo (1982) 2305 Mpho Nkomo (1989) 2405 R24,000 Mahlako Nkomo (1984) 6605 Tshepi Phahlane (1986) 2305 R53,000 ii. Write the SQL code to delete the row for the employee who was paid R24,000 bonus. (2) 5.b. In the following questions, you will use the data of UNISA student registration information. i. Write the SQL code that will create the STUDENT table provided below. This table is a subset of the UNISA student registration database. (Note that the DEPT_CODE is the FK to DEPARTMENT, also use your own Data Declarations). (4) Table 5.2: The attributes of the Student Entity STUDENT StudentID {PK} DEPT_CODE {FK} STUD_Gender STUD_fname STUD_lname STUD_INITIAL STUD_EMAIL ii. Because you are a registered student at UNISA and you have classmates who are your friends, please write SQL code to enter your own correct information and also the information of anther student into the STUDENT table. That is 2 records. For the student number of your friend you can use . The Finance Department of SOUTHERN AFRICAN political party stores the Bonus field in the Employee table because a bonus is an attribute associated with employees. Given that information, use SQL commands to answer questions 4.a.i. i. Write the SQL code to delete the row for the employee who was paid R24,000 bonus from the below table Employee. (4) Employee_ID Dept_ID Bonus R24, R53,000 4.b. In the following questions, you will use the data of UNISA student registration information. i. Write the SQL code that will create the STUDENT table provided below. This table is a subset of the UNISA student registration database. (Note that the DEPT_CODE is the FK to DEPARTMENT, also use your own Data Declarations). (5)

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
August 29, 2025
Number of pages
13
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

INF2603 Assignment 5
(COMPLETE ANSWERS)
2025 (865742) - DUE 5
September 2025



For assistance contact
Email:

, A 3NF relation is in BCNF (Boyce-Codd Normal Form) when every determinant in the table is a
candidate key. It's not in BCNF when there is at least one determinant that is not a candidate key.
3NF to BCNF: When it is not
A table can be in 3NF but not in BCNF if it has a composite primary key and a non-key
attribute that depends on part of the primary key, or if it has overlapping candidate keys where
one key depends on a non-key attribute. The canonical example is a table with overlapping
candidate keys.
Let's imagine a small training company's database with a table called
COURSE_REGISTRATION.
Example:
 Table: COURSE_REGISTRATION (StudentID, CourseName, Instructor)
 Functional Dependencies:
o StudentID, CourseName -> Instructor (A specific student registers for a specific
course, and that course is taught by a specific instructor).
o Instructor, CourseName -> StudentID (A specific instructor teaches a specific
course, and that is a unique combination for a student).
o CourseName -> Instructor (Each course has only one instructor).
In this case:
1. The candidate keys are (StudentID, CourseName) and (Instructor, CourseName).
2. The table is in 3NF because there are no non-key attributes that depend on other non-key
attributes (transitive dependency). The functional dependency CourseName -> Instructor
is allowed in 3NF because Instructor is not a non-key attribute; it's part of a candidate
key.
3. However, the table is not in BCNF because we have a determinant, CourseName, that is
not a candidate key, but determines Instructor. The BCNF rule is stricter: every
determinant must be a candidate key. The redundancy is obvious: if Math is taught by Dr.
Nxumalo, this information is repeated for every student taking the Math course.

Reviews from verified buyers

Showing all reviews
2 months ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
kalangulawendy Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
25
Member since
10 months
Number of followers
0
Documents
131
Last sold
3 weeks ago

3.8

5 reviews

5
1
4
2
3
2
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions