



















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
Assignment 1 - Database(1622) - Grade P
Typology: Study Guides, Projects, Research
1 / 27
This page cannot be seen from the preview
Don't miss anything!




















Qualification TEC Level 5 HND Diploma in Computing Unit number and title Unit 04: Database Design & Development Submission date 19/02/20 22 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Phan Nhat Linh Student ID GCD Class GCD0905 Assessor name Do Duy Thao 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 (^) Linh Grading grid
Grade: Assessor Signature: Date: Signature & Date:
CHAPTER I : STATEMENTS OF USER AND SYSTEM REQUIREMENTS
A database is information that is set up for easy access, management and updating. Computer databases typically store aggregations of data records or files that contain information, such as sales transactions, customer data, financials and product information. Databases are used for storing, maintaining and accessing any sort of data. They collect information on people, places or things. That information is gathered in one place so that it can be observed and analyzed. Databases can be thought of as an organized collection of information.
Figure 1 : Database
Businesses make educated business decisions based on data contained in databases. The following are some examples of how businesses use databases: ➢ Improve the efficiency of your company procedures: Data about business operations such as sales, order processing, and customer support is collected by companies. They use the information to enhance their procedures, develop their company, and increase income. ➢ Keep track of your clients: People's information, such as that of clients or users, is frequently stored in databases. User information such as names, email addresses, and activity is stored in databases on social media sites, for example. The information is utilized to make content recommendations to users and to improve their overall experience. ➢ Personal health information should be kept private: Databases are used by healthcare practitioners to securely store personal health data in order to inform and enhance patient treatment.
Coach
➢ Advanced Statistics Actions
➢ Each team will have many coaches such as head coach, goalkeeping coach, fitness coach,... ➢ Each contract will be signed with a coach. But a coach can sign many contracts. For example, in 2010 coach A signed a contract with team B, in 2011 coach A was fired, in 2013 coach A signed a contract with team C. It cannot be ruled out that a coach does not have a contract. ➢ In a team there will be many players, each player only plays for one team. ➢ A football team will have its own stadium, teams with economic potential will have more than one stadium. However, a stadium is only owned by one team ➢ A team will have many enrollment, but a enrollment is only of one team. ➢ One entry is for only one tournament, however multiple entries make up one tournament.
The database system has 5 tables, which are:
This table is used to store information of football coaches, this information can help users learn about opponents before matches, in addition, it is also the basis for teams to search for coaches. new member .This table includes: ➢ Coach_ID (PK): This is the primary key of the table to ensure that each trainer has a unique ID that doesn't duplicate ➢ Coach_Name: Save the name of the coach ➢ Coach_Age: Saves coach's age information
Figure 3 : Coach table Figure 4 : Example of Coach table
This table is used to store information about the coach's contract with the team. ➢ Team_ID (PK, FK): This is the primary key and the foreign key used to refer to Team_ID in the Team table to display the ID of that team. ➢ Coach_ID: This is the primary key and foreign key referenced with Coach_ID in the Coach table as the primary function that allows the team to contract with multiple coaches. ➢ Contract_StartDate: Stores the start date information in the contract. ➢ Contract_EndDate: Stores contract end date information.
Figure 7 : Footballer table Figure 8 : Example of Footballer table
This table is used to store general information of the teams, it helps users to have more information about the opponent. This table includes: ➢ Team_ID ( PK ): This is the primary key to identify that a team only has a unique and not duplicate ID. ➢ Team_Name: Store name information of the team ➢ Coach_ID (FK): This is a foreign key that refers to the Contract table. That shows the coach's contract information..
➢ Tournament_ID (FK): This is the foreign key that refers to the Tournament table. That shows what tournaments this team is participating in. ➢ Stadium_ID (FK): This is a foreign key that refers to the Stadium table. That shows the stadium information of this team. Figure 9 : Team table Figure 10 : Example of Team table
This table is to store information of all tournaments and the countries that host that tournament. This table includes ➢ Tournament_ID (PK): This is the primary key to identify that each tournament has only one unique ID and no duplicates.
➢ Enrollment_StartDate: Stores registration date information. Figure 13 : Enrollment table Figure 14 : Example of Enrollment table
This table is used to store information of all stadiums, helping opponents and spectators to know the stadium's information, as well as the stadium's address. This table includes: ➢ Stadium_ID (PK): This is the primary key to identify that a stadium has only one unique ID and no duplicates. ➢ Stadium_Name: Stores the name of the stadium. ➢ Stadium_Located: Stores the address information of the stadium.
Figure 15 : Stadium table Figure 16 : Example of Stadium table