Your task
You have been commissioned to develop a database system that is capable of keeping records for FU's table tennis matches from now on.
The database needs to keep a record of:
- All team information, including players' information
- All games, sections, the players involved and the scores
- The winner team of each game
- The teams play in each round
- The match winner team
- The ranking of the teams of each year's match
- The referee assigned for each game and their performance score
Further, it should be possible to generate a report on:
- Game scores after each round, including section scores
- The total number of games that each team played in a match
- The total scores of each team after a match
- The ranking list of teams after a match
- The winner list of all recorded matches
- Referees ranking, referee with best performance at all matches
Steps you need to take to develop your database application
1. Complete the analysis and design of your database application
a. List the business rules for your system.
b. Identify the entities and relationships in your system.
c. Identify the characteristics of the entities in your system.
d. Develop an ER diagram to model your system.
e. Develop table structures from the ER model.
f. Conduct a dependency analysis of the table structures and normalize your tables where appropriate, to at least 3NF.
g. Create a data dictionary for your database.
2. Implement your project
a. Create a database that hosts your application data
b. Create tables in your database. These must be consistent with your design.
c. Populate all tables with sample data (at least 10 entries in each)
d. Create the required views, stored procedures etc. to meet the requirements of your system
3. to write SQL commands
1. SQL codes are provided for database and table creation
2. SQL codes are provided for data record insertion Reports by SQL:
3. to show the winner of each game in each round
4. to sort all teams according to their scores (ascending)
5. to provide a report for a referee with all the games he served
6. to provide a list of the loser teams
7. to provide a list of all players in all teams
8. Game scores after each round, including section scores
9. The total number of games that each team played in a match
10. The total scores of each team after a match
11. The winner list of all recorded matches
12. Referees ranking, referee with best performance at all matches
You need to be able to demonstrate that your database application meets the requirements detailed in the scenario as well as be consistent with the model you have developed.
Submission Requirements
Your assignment should be composed of the following parts:
1. Project document which includes the following:
1.1. A list of the business rules;
1.2. ER Diagram(s) prepared using software such as MS Office Visio or any other ER diagram tool. These should include all necessary information about the entities, attributes and relationships. Please provide clear and easy-to-read screenshot of your ER Diagram(s). If you draw your diagram(s) in MS Visio, please submit the Visio file too;
1.3. Data dictionary in the format shown in the lecture notes;
1.4. Database design and table structures showing table names, as well as any related entity integrity and referential integrity constraints. Include in the table structures attribute data types, sizes, primary keys, foreign keys and any other relevant information;
1.5. Diagrams showing the dependency analysis for each of the tables. You need to demonstrate that all tables are in 3NF. Show the process of normalization including tables in 1NF, 2NF and 3NF respectively. Please refer to the examples in lecture notes;
1.6. The SQL code you used to:
1.6.1. Create and populate the database; 1.6.2. Create each of the reports identified in the assignment specification.
2. Database implementation in XAMPP
2.1. All the tables of your assignment must be implemented in XAMPP. Please provide screenshots as evidence of your implementation.
2.2. All the tables must be well defined with appropriate primary keys and foreign keys where applicable. Please provide screenshot of table structures.
2.3. All tables must be populated with sample data (at least 10 entity instances - rows -in each table). Please provide screenshots of table data records.
Attachment:- Database assignmet.rar