0% found this document useful (0 votes)
17 views3 pages

Database Theory Assignment 31 May

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)
17 views3 pages

Database Theory Assignment 31 May

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/ 3

Faculty Of Computer Engineering Informatics and Communications

Department: Computer Engineering

Module: Database Systems

Module Code: HCE/HHE/HSE 114

Database Fundamentals Assignment

Submission Guidelines:

 Deadline: 31 May 2024 (TODAY),

 Hard copies will be handed to either the Class Rep, Mr. Mapfumo or Mr.Dube

 Soft copies will be sent to [email protected], these soft copies will be used for
plagiarism detection. Late submissions will not be tolerated.

Total Marks: 70

Part 1: Theoretical Questions (30 marks)

Introduction to Databases and Transactions (10 marks)

1. Define a database system and explain its purpose. (3 marks)


2. Describe the architecture of a database system. (3 marks)

3. Explain the concept of transaction management and its importance. (2 marks)

4. List the advantages and disadvantages of database systems. (2 marks)

Data Modelling (10 marks)

1. What is data modeling and why is it important? (3 marks)

2. Describe the Unified Modeling Language (UML) and its relevance to data modeling. (3
marks)

3. Explain different types of data models. (2 marks)

4. Discuss the importance of data modeling in database design. (2 marks)

Relational Database Design (10 marks)

1. Define normalization and explain its significance in relational database design. (3 marks)

2. Describe the First, Second, and Third Normal Forms (1NF, 2NF, 3NF). (3 marks)

3. Explain Boyce-Codd Normal Form (BCNF) and its importance. (2 marks)

4. What is denormalization, and when might it be used? (2 marks)

Part 2: Practical Exercises (40 marks)

Entity-Relationship (E-R) Modeling (10 marks)

1. Draw an ER diagram for a university database that includes entities such as Students,
Courses, Instructors, and Enrollments. Clearly indicate primary keys, foreign keys, and
relationships. (10 marks)

Structured Query Language (SQL) (20 marks)

1. Given the following schema:

 Employees (EmployeeID, Name, Department, Salary)

 Departments (DepartmentID, DepartmentName)


 Projects (ProjectID, ProjectName, DepartmentID)

 Assignments (AssignmentID, EmployeeID, ProjectID, HoursWorked)

Write SQL queries for the following:

5. Retrieve the names of all employees working in the 'Research' department. (3 marks)

6. List all projects along with the total hours worked by employees. (4 marks)

7. Find the average salary of employees in each department. (3 marks)

8. Update the salary of an employee with EmployeeID 123 to 60000. (3 marks)

9. Delete the assignment record with AssignmentID 456. (3 marks)

10. Create a view that shows the project name, employee name, and hours worked for each
assignment. (4 marks)

Constraints, Views, and Transaction Management (10 marks)

1. Define integrity constraints and explain their types with examples. (3 marks)

2. What are the ACID properties of transactions, and why are they important? (3 marks)

3. Explain the different transaction isolation levels. (4 marks)

You might also like