Docsity

Database Design and Development: Assignment 1 - Student Score Management System, Exercises of Database Programming

Toggle sidebar
bg1
ASSIGNMENT 1 FRONT SHEET
Qualification TEC Level 5 HND Diploma in Computing
Unit number and title Unit 04: Database Design & Development
Submission date 24/10/2021 Date Received 1st submission 23/10/2021
Re-submission Date Date Received 2nd submission
Student Name Student ID
Class Assessor name
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
P1 M1 D1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Database Design and Development: Assignment 1 - Student Score Management System and more Exercises Database Programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification TEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date 24/10/2021 Date Received 1st submission 23/10/ Re-submission Date Date Received 2nd submission Student Name Student ID Class Assessor name 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

P1 M1 D

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date: Signature & Date:

● The individual Assignment must be your own work, and not copied by or from another student. ● If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style. ● Make sure that you understand and follow the guidelines to avoid plagiarism. Failure to comply this requirement will result in a failed assignment. Unit Learning Outcomes:

LO1 Use an appropriate design tool to design a relational database system for a substantial problem Assignment Brief and Guidance: You are 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 university. It decided to develop several academic systems to manage the university easier including: Online Library system, Student Grading System, Attendance System, CMS System, Scheduling System, Enrolment Systems, and so on. You are tasked to select one of those systems to develop database for FPT university. Your tasks are to:  Work with FPT to find out about current requirements for each system  Analyze the requirements and produce clear statements of user and system requirements.  Design a relational database system using appropriate design tools and techniques  Develop a fully functional relational database system, based on an existing system design.  Test the system against user and system requirements.  Produce technical and user documentation Part 1 (Assignment 1) Before you start the development process, your manager has asked you to produce a report for the CEO of FPT, containing:

  1. Clear statements of user and system requirements. The system must have at least 2 user roles, including business processes and statistical reports for FPT university managers.
  2. The design of the relational database system using appropriate design tools and techniques. It should contain at least four interrelated tables. You would prefer to produce a more detailed document, so you will produce a comprehensive design for a fully functional system which will include interface and output designs, data validations and cover data normalization. Your manager would like on the report your assessment of the effectiveness of the design in relation to

user and system requirements.

Learning Outcomes and Assessment Criteria (Assignment 1): Learning Outcome Pass Merit Distinction LO1 P1 Design a relational database system using appropriate design tools and techniques, containing at least four interrelated tables, with clear statements of user and system requirements.

M1 Produce a comprehensive design for a fully functional system which includes interface and output designs, data validations and data normalisation.

D1 Assess the effectiveness of the design in relation to user and system requirements.

Unit 04 – Database Design and Development

Chapter 1 - Statements of user and system requirements (P1)

1.Statements of user.

Scenario: A university requires a student score management database. Here is the interview content: There are many curricula in the school. Each curriculum will have multiple classes organized and each class will fall under only one curriculum. The class will have many students. During the course of study, students will be assigned exercises in many different subjects. When completing assignments, teachers will give grades and feedback to students through transcripts. The school that requires the additional program will have to make a list of the top 3 students with the highest and lowest scores in each class of each subject (based on the results of the first test). The school will rely on that list to award scholarships as well as have a plan to improve the learning situation of students

2.System Requirement Specification (SRS)

A. Reasons for the project

The usual manual way of managing points is through paper. This method takes a lot of time and effort. Its accuracy is not high. Besides, it has many shortcomings such as slow data search ability, year-long data storage can damage documents. Therefore a database system is needed. It helps to completely solve the existing disadvantages of manual score management such as fast data entry time, fast information lookup, high accuracy and document storage without worrying about damage, accounting real space.

B. Requirements and Expectation

The proposed project is intended to make it easier to manage scores online. The project wants to bring about a change in data management, more specifically the computerization of data management. The database system will do the job of managing a huge amount of data with thousands of information about student scores along with information about teachers, subjects, courses. The system is built. with suitable features and utilities and saves time in management.

The project will provide an intuitive, user-friendly interface. The design will soon be completed and put into operation with vision 1 in the next 2 months.

C. Objectives (Things intended to achieve)

The design meets the following needs: information will be carefully managed, providing actions such as update, add, delete information for each data object, helping to quickly look up data on each object. The system has user roles, including business processes and statistical reports to be able to meet user needs. Easy data retrieval with user-friendly and easy-to-use interface

1 TeacherID ID of teacher 2 Name Name of Teacher 3 Gender Gender of Teacher 4 PhoneNumber Phone Number of Teacher 5 Email Email of Teacher 6 Birth Birth of Teacher Primary key is TeacherID

Subject NO. Attribute Description 1 SubjectID ID of Subject 2 Name Name of Subject 3 Theory Number of theoretical periods 4 Lab Number of practice periods Primary key is SubjectID

Student NO. Attribute Description 1 Student ID ID of student 2 Name Name of student 3 ClassID ID of Class of Student 4 Birth Birth of Student 5 Email Email of Studnet 6 Gender Gender of studnet 7 Phone Number Phone Number of Student Primary key is StudentID

Class

NO. Attribute Description 1 ClasID ID of class 2 TeacherID ID of Teacher 3 CurriculumnID ID of subject 4 Size Duration of a lesson Primary key is ClassID

ExamMark NO. Attribute Description 1 ExamID ID of exam 2 StudentID ID of student 3 SubjectID ID of subject 4 ExamDate Date of exam 5 TeacherID ID of teacher 6 ExamTimes Exam times 7 Feedback Feedback of exam 8 Mark Mark of exam Primary key is ExamsID

 Teacher – ExamMark (1:N): An instructor can belong to more than one line of the ExamMark relation if the instructor scores more than one student, but each line in the ExamMark relation relates to only one teacher.  Student – ExamMark (1:N): A student can belong to more than one line of the ExamMark relation if the student takes more than one subject, but each row in the ExamMark relation concerns only one student.  Subject – ExamMark (1:N): A Subject can belong to multiple lines of the ExamMark relation if the subject has many exam students but each row in the ExamMark relation relates to only one subject.

Chapter 3 – Data Validation and Normalization (M1)

1. Data Validation (Data integrity included in physical design)

Curriculunm NO. Attribute Data type Constraint Description 1 CurriculumnID Char( 4 ) Primary key ID of curriculumn 2 Curriculumn Varchar(30) Not null Name of curriculumn Teachers NO. Attribute Data type Constraint Description 1 TeacherID Char(9) Primary key ID of teacher 2 Name Varchar(30) Not null Name of Teacher 3 Gender Varchar(10) Not null, only accept ‘male’ or ‘female’ value

Gender of Teacher

4 PhoneNumber Char(10) Not null Phone Number of Teacher 5 Birth Date Not null Birth of Teacher 6 Email Varchar(30) Not null Email of Teacher Subject NO. Attribute Data type Constraint Description 1 SubjectID Char(4) Primary ID of Subject 2 Name Varchar(30) Not null Name of Subject 3 Theory Int Not null Number of theoretical periods 4 Lab Int Not null Number of practice periods

4 ExamTimes Int Not null Exam times 5 SubjectID Char(4) Foreign key references Subject

ID of subject

6 TeacherID Char(9) Foreign key references Teacher

ID of teacher

7 Feedback Varchar(1000) Not null Feedback of exam 8 Mark Float Not null, only ranges from 0 to 4

Deadline of Exam

2. Normalization:

Database normalization is the process of structuring a database, usually a relational database, in accordance with a series of so-called normal forms in order to reduce data redundancy and improve data integrity. The ER diagram has met the 3NF standard by dividing the original large entity tables into smaller entity tables and linking those tables using relationships to reduce data redundancy and eliminate data redundancy, undesirable characteristics such as Insert, Update and Delete anomalies Er diagram above includes 6 entities and most of them have a one-to-many relationship. Each entity has one or more primary keys to identify each entity in the entity set. At the same time, entities also contain foreign keys to help refer information to other tables, ensuring data integrity. Thereby, the needs of data entry and data retrieval are guaranteed to meet the basic needs of users.

3.Physical design

A. Create database and Create tables.

Create database ASM use ASM Create ( table Curriculumn CurriculumnID Curriculumn varchar char( (^4) ( 30 ) Primary) NOT NULL, Key, ) Create table Class ( ClassID char( 9 ) primary key,

ClassName CurriculumnID char char( 9 ) NOT( 4 ) NOT NULL, NULL references Curriculumn(CurriculumnID),

)^ Size^ int^ NOT^ NULL Create ( table Student StudentID Name varchar char( 30 ( 9 )) PrimaryNOT NULL, key, ClassID Birth date char NOT( 9 ) NOTNULL, NULL references Class(ClassID), Email Gender varchar varchar( (^30) ( 10 ) NOT) NOT NULL, NULL check(gender='male' or gender='female'),

)^ PhoneNumber^ char(^10 )^ NOT^ NULL Create ( table Subject SubjectID Name varchar char(( 304 ) (^) ) PrimaryNOT NULL, key, Theory Lab int intNOT NOT NULL NULL, ) Create table Teacher ( TeacherID char( 9 ) Primary key, Name Gender Varchar varchar( (^30) ( 10 ) (^) )NOT not nullNULL, check(gender='male' or gender='female'), PhoneNumber Birth date NOT char NULL,( 10 ) NOT NULL,

)^ Email^ varchar(^30 )^ NOT^ NULL Create ( table ExamMark ExamID StudentID char char( 9 )( 9 primary) NOT NULL key, references Student(StudentID), ExamDate ExamTimes date int NOTNOT NULL,NULL, SubjectID TeacherID char char( (^4) ( 9 ) (^) )NOT NOT NULL NULL references references Subject Teacher(SubjectID(TeacherID),), Feedback Mark float varchar check(( Mark 1000 ) (^) >NOT 0 and NULL, mark < 4 ) )

Teacher management interface

Subject management interface

Class management interface