8.1 Database Concepts (3)

Resources | Revision Questions | Computer Science

Login to see all questions

Click on a question to view the answer

1.

Question 1

Consider the following database schema for an online bookstore:

Customers (CustomerID, CustomerName, CustomerEmail, City)

Orders (OrderID, CustomerID, OrderDate, TotalAmount)

OrderItems (OrderItemID, OrderID, ProductID, Quantity, UnitPrice)

Products (ProductID, ProductName, Description, Price)

Explain, with justification, whether this set of tables is in 3NF. If it is not, identify which tables violate 3NF and explain the reason for the violation.

2.

Question 3

Consider the following database schema:

Students (StudentID, StudentName, CourseID)

Courses (CourseID, CourseName, Instructor)

Enrollments (EnrollmentID, StudentID, CourseID, Grade)

Explain, with justification, whether this set of tables is in 3NF. If it is not, identify which tables violate 3NF and explain the reason for the violation.

3.

Question 1: Define the term 'normal form' in database normalization. Explain the difference between 1NF, 2NF, and 3NF, providing an example of a data anomaly that each normal form aims to prevent.