










































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 Database Design And Development Asignment 2
Typology: Essays (university)
1 / 50
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:
II. System requirements
1. Real world scenario: I am employed as a Database Developer for a large IT consultancy company. The company has been approached by FPT university which is expanding due to the growth of the number of students. FPT is currently facing difficulties in dealing with managing the dormitory. The construction of dormitory management software is implemented with the following subjects: Room, student, class, dormitory management, room rental contract with the following requirements: + The dormitory of FPT University includes many rooms. + Room's information includes: Room ID, room name, area, number of beds, rental price. + Each room can accommodate many students. + Student information including: Student ID, name, age, gender, address, phone number. + Each student can come from different classes. + A dormitory has many managers. + Each manager can manage multiple rooms and multiple room rentals. + Room rental details include: Contract code, check-in date, check-out date. 2. Data requirements for storage Table 1. Data requirements for storage. Entity Description of Entity Attribute Description of Attribute Room All of rooms in the dorm RoomID It is a unique identifier for each room in the dorm RoomName Name of the room RoomArea Area of the room NumberOfBeds Number of beds in the room RoomRates Room rent Class All of classes in the school ClassID It is a unique identifier for each class ClassName Name of the class
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.
2. Convert ER Diagram to Relation Diagram Table 2. Convert ER Diagram to Relation Diagram. Relation Primary Key Foreign Key Other Attribute Room RoomID RoomName RoomArea NumberOfBeds RoomRates Class ClassID ClassName Student StudentID ClassID StudentName RoomID Age Gender PhoneNumber Address RentalContract ContractID StudentID CheckInDay CheckOutDay DormitoryManager ManagerID ManagerName Room_Manager RoomID RoomID ManagerID ManagerID Contract_Manager ContractID ContractID ManagerID ManagerID
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.
5. Implement a query language. + Insert into data: Figure 3. Insert into data. + Select table: Figure 4. Select table.
IV. Database development
1. Create User Interface
2. Coding