















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is my report for assignment 1 of Database Design And Development.
Typology: Essays (university)
1 / 23
This page cannot be seen from the preview
Don't miss anything!
















Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Mai Van Thai Student ID BHAF Class BH-AF2005-2.2 Assessor name Ngo Thi Mai Loan Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Studentās signature Grading grid
Grade: Assessor Signature: Date: Signature & Date:
I. Introduction This report will discuss, design database about dormitory management scenario of FPT University. Describe the entities, attributes, and relationships between entities. Supply system design involves an exact problem: designing ER diagrams, converting ER diagrams into relational diagrams, normalization, creating relational database systems. Finally, the report will show the system interface design for the above scenario. To do this, I chose Microsoft SQL Server Management Studio 18 to design.
Student All of students in the school StudentID It is a unique identifier for each student in the class StudentName Name of student Age Age of student Gender Age of student Address Address of student PhoneNumber PhoneNumber of student DormitoryManager All of managers in dormitory ManagerID It is a unique identifier for each dormitory manager ManagerName Name of manager RetalContract All of rental contracts in dormitory ContractID It is a unique identifier for each contract CkeckInDay Check in date CkeckOutDay Check out date
3. Relationship between entities: + Relationship between entity Student and entity Class: a student belongs to only one class, a class may have many students.
III. Design relational database system for a substantial problem
1. ER Diagram Figure 1. ER diagram.
3. Normalization + Definition and purpose of database normalization: Normalization is the process of splitting tables (decomposing) into smaller tables based on functional dependencies. Standard formats are guidelines for designing tables in a database. The purpose of standardization is to eliminate data redundancy and redundancy errors and data manipulation errors (Insert, Delete, Update). + Normalization statement for each of relation: Room (RoomID, RoomName, RoomArea, NumberOfBeds, RoomRates) RoomID RoomName, RoomArea, NumberOfBeds, RoomRates Already in 3NF format because: Does not contain repetition, does not depend on partial functions, does not contain transitive dependencies. Class (ClassID, ClassName) ClassID ClassName Already in 3NF format because: Does not contain repetition, does not depend on partial functions, does not contain transitive dependencies. Student (StudentID, StudentName, Age, Gender, PhoneNumber, Address, ClassID, RoomID) StudentID StudentName, Age, Gender, PhoneNumber, Address, ClassID, RoomID Already in 3NF format because: Does not contain repetition, does not depend on partial functions, does not contain transitive dependencies. RentalContract (ContractID, CheckInDay, CheckOutDay, StudentID) ContractID CheckInDay, CheckOutDay, StudentID Already in 3NF format because: Does not contain repetition, does not depend on partial functions, does not contain transitive dependencies. DormitoryManager (ManagerID, ManagerName) ManagerID ManagerName Already in 3NF format because: Does not contain repetition, does not depend on partial functions, does not contain transitive dependencies. Room_Manager (RoomID,ManagerID) Already in 3NF format because: Does not contain repetition, does not depend on partial functions, does not contain transitive dependencies. Contract_Manager (ContractID, ManagerID) Already in 3NF format because: Does not contain repetition, does not depend on partial functions, does not contain transitive dependencies.
4. Relational database system + Create the database: - Open SQL Server Management, select "New Query" and write the command to create the database, then press F5. Figure 2. Create the database.
Figure 11. Class table. Figure 12. DormitoryManager table.
Figure 13. Room_Manager table. Figure 14. Contract_Manager table.