Creating and manipulating a MySQL schema for soccer Domain Description The attached file contains information on...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Creating and manipulating a MySQL schema for soccer Domain Description The attached file contains information on the soccer (European football) players for the 2017/2018 Premier League. The Premier league is an English professional soccer league. The Premier League is the most watched sports league in the world, broadcasted in 212 territories to 643 million homes and a potential TV audience of 4.7 billion people. A game of soccer is played with 2 teams. There are 20 teams in the league. Each team plays 2 matches with each of the other 19 opponents, one in the home stadium and the other in an away stadium. Thus, in a season there are 380 matches in total and 38 matchdays. Each match is played in two halves, each half is 45 minutes. The team which scores more goals at the end of the second half wins, if both teams score the same number of goals, the match ends in a draw. Data File Description There are three different csv files. Each row within the match's file is data specific to one match. Each row within the stadium file is specific to each team's home stadium. Each team has only one home stadium. Each row within the manager's file is data specific to one manager. A team may have one to many managers. The data fields in the matches file (EPL_matches.csv) are the following: Match number: Match number of the season Match day: Match day (1 to 38) Date: Date, in which match was played (In YYYY-MM-DD) format (Note: In excel, if you open the csv, you might see a different format, but do not worry. After importing in MySQL you will see the above format) Team 1: Home team Team 2: Away team Half time score team 1: Home team number of goals at the end of first half Half time score team 2: Away team number of goals at the end of first half Full time score team 1: Home team number of goals at the end of second half Full time score team 2: Away team number of goals at the end of second half The data fields in the stadium's file (EPL_stadiums.csv) are the following: Team: the team or the name of the Premier League team Venue: the name of the team's home stadium Each team has one home stadium. The data fields within the manager's file (EPL_managers.csv) are the following: Manager: the name of the manager for the team. Team: the name of the Premier league team Nationality: the nationality of the manager Status: Status of the manager (Active or Sacked) Query creation: When creating the SQL SELECT statements, make sure you do not design queries that are dependent on the data stored in the database or that only work for this specific instance of the schema. Also, please provide the question number in comments before the solution. Assignment Description 1. Design the schema for the Premier Football League. This should be done in the MySQL workbench. Create a pdf of the EER model. (10 points) 2. Create a database for your schema named premierlastnamefirstnameinitial. You may create the tables' schemas using the SQL CREATE command or using the EER modeling tool. (15 points) 3. Import the .csv file into your tables using the Import table wizard. Compose queries to answer the following questions:(5 points) 4. Generate a list of matches from match day 1, in which the home team won. The result should contain match number, home team and the away team name. (5 points) 5. Which teams had more than one manager in the season? The result should contain team name and the number of managers. (5 points) 6. Which manager/managers worked for more than one team? The result should contain manager name and number of teams. (5 points) 7. Generate a list of managers, teams and the number of goals scored by the team in the home stadium for each team for the season. Consider only the active managers. The list should be in descending order of number of goals. The result should contain the manager's name, the team name, and the number of goals. (5 points) 8. Generate a list consisting of a manager's name, total number of matches won by the manager in the season. The list should be in descending order of number of matches. Consider only the active managers. (5 points) 9. Determine the stadium, where the most number of goals were scored. The result should only contain the stadium name. (5 points) 10. Determine the number of matches ended as draw per team. The result should contain the team name and the number of matches. (5 points) Creating and manipulating a MySQL schema for soccer Domain Description The attached file contains information on the soccer (European football) players for the 2017/2018 Premier League. The Premier league is an English professional soccer league. The Premier League is the most watched sports league in the world, broadcasted in 212 territories to 643 million homes and a potential TV audience of 4.7 billion people. A game of soccer is played with 2 teams. There are 20 teams in the league. Each team plays 2 matches with each of the other 19 opponents, one in the home stadium and the other in an away stadium. Thus, in a season there are 380 matches in total and 38 matchdays. Each match is played in two halves, each half is 45 minutes. The team which scores more goals at the end of the second half wins, if both teams score the same number of goals, the match ends in a draw. Data File Description There are three different csv files. Each row within the match's file is data specific to one match. Each row within the stadium file is specific to each team's home stadium. Each team has only one home stadium. Each row within the manager's file is data specific to one manager. A team may have one to many managers. The data fields in the matches file (EPL_matches.csv) are the following: Match number: Match number of the season Match day: Match day (1 to 38) Date: Date, in which match was played (In YYYY-MM-DD) format (Note: In excel, if you open the csv, you might see a different format, but do not worry. After importing in MySQL you will see the above format) Team 1: Home team Team 2: Away team Half time score team 1: Home team number of goals at the end of first half Half time score team 2: Away team number of goals at the end of first half Full time score team 1: Home team number of goals at the end of second half Full time score team 2: Away team number of goals at the end of second half The data fields in the stadium's file (EPL_stadiums.csv) are the following: Team: the team or the name of the Premier League team Venue: the name of the team's home stadium Each team has one home stadium. The data fields within the manager's file (EPL_managers.csv) are the following: Manager: the name of the manager for the team. Team: the name of the Premier league team Nationality: the nationality of the manager Status: Status of the manager (Active or Sacked) Query creation: When creating the SQL SELECT statements, make sure you do not design queries that are dependent on the data stored in the database or that only work for this specific instance of the schema. Also, please provide the question number in comments before the solution. Assignment Description 1. Design the schema for the Premier Football League. This should be done in the MySQL workbench. Create a pdf of the EER model. (10 points) 2. Create a database for your schema named premierlastnamefirstnameinitial. You may create the tables' schemas using the SQL CREATE command or using the EER modeling tool. (15 points) 3. Import the .csv file into your tables using the Import table wizard. Compose queries to answer the following questions:(5 points) 4. Generate a list of matches from match day 1, in which the home team won. The result should contain match number, home team and the away team name. (5 points) 5. Which teams had more than one manager in the season? The result should contain team name and the number of managers. (5 points) 6. Which manager/managers worked for more than one team? The result should contain manager name and number of teams. (5 points) 7. Generate a list of managers, teams and the number of goals scored by the team in the home stadium for each team for the season. Consider only the active managers. The list should be in descending order of number of goals. The result should contain the manager's name, the team name, and the number of goals. (5 points) 8. Generate a list consisting of a manager's name, total number of matches won by the manager in the season. The list should be in descending order of number of matches. Consider only the active managers. (5 points) 9. Determine the stadium, where the most number of goals were scored. The result should only contain the stadium name. (5 points) 10. Determine the number of matches ended as draw per team. The result should contain the team name and the number of matches. (5 points)
Expert Answer:
Answer rating: 100% (QA)
Designing a MySQL schema for the Premier Football League and performing various database operations based on the provided data involves multiple steps Below Ill outline the steps and SQL queries for e... View the full answer
Related Book For
Compensation
ISBN: 978-1259532726
12th edition
Authors: George Milkovich, Jerry Newman, Barry Gerhart
Posted Date:
Students also viewed these databases questions
-
You are part of a project team using collaboration software provided by your employer, the Baduro Company. Every project team member works from their own home. Project team members are located in...
-
Read the case study and answer the question below with a one page response. What does a SWOT analysis reveal about the overall attractiveness of Under Armours situation? Founded in 1996 by former...
-
A group of five successful business people were awarded the franchise for one of two new expansion teams in the North American Sports League (NASL). The professional sports franchise was named the...
-
Write an HTML document to create a form that collects favorite popular songs, including the name of the song, the composer, and the performing artist or group. This document must call one PHP script...
-
The following data are for a simple steam power plant as shown in Fig. P6.39 State 1 2 3 4 5 6 7 P MPa 6.2 6.1 5.9 5.7 5.5 0.01 0.009 T C 45 175 500 490 40
-
A polytropic process with n=1.5 is applied to methanol vapor in a piston/cylinder device. The process starts at room temperature and ends at 435 C. Find the specific work during the process. Assume...
-
Let \(Z\) be a Brownian motion defined in [0,T]. Given a partition \(\mathscr{P}\) such that \(0=t_{0}
-
Amigos Burrito Inc. sells franchises to independent operators throughout the northwestern part of the United States. The contract with the franchisee includes the following provisions. 1. The...
-
Buck Company purchased a computer and a desk for $ 9 , 0 0 0 cash. An appraiser determined the fair market value of computer to be $ 3 , 0 0 0 and the desk to be $ 7 , 0 0 0 . Based on this...
-
Developed by Coca-Cola Asia Pacific, Coca-Cola Fiber+ (or just Coke Plus) is expanding through Hong Kong, Japan, Mainland China, Mongolia, and Taiwan. Coke Plus is a zero calorie soda (essentially...
-
ok ht High Country, Incorporated, produces and sells many recreational products. The company has just opened a new plant to produce a folding camp cot that will be marketed throughout the United...
-
Distinguish between a logit model and a limited dependent variable model. Give an example of each.
-
Fred Miller, a teacher, had several additional sources of income during 2018. He received a \(\$ 500\) gift as a result of his helping a friend build a house, and he was assigned \(\$ 300\) of...
-
Each of the following would be one of the requirements for a payment to be alimony under instruments executed after 1984 except: a. Payments are required by a divorce or separation instrument. b....
-
Define multicollinearity. Fully describe the problems it can cause and the effect each has on the model.
-
Discuss the destructive nature of the problems that beset the linear probability model.
-
Solve the given differential equation: xy''+y'=0 usually if it was the form (x^2)y''+xy'+5y=0, you could then assume (r^2)+(1-1)r+5=0 how do i start/solve this?
-
The company manufactures three products: wooden chairs, tables and dressers. AFC started off as a 'Mom & Pop' shop but has grown rapidly. AFC uses one assembly line to build all three products,...
-
What might John have done differently in the early communications process to improve later performance review sessions?
-
Has the globalization of the English Premier League been a good thing? Who is better off as a result? Who is worse off? Think carefully about owners, fans/consumers, and players. Are there others who...
-
Should Billy Ray have quit? Why? Should John have accepted his return? What other action might Billy Ray have taken that could have been hurtful to the company?
-
Why is macroeconomic forecasting so difficult? Does this difficulty mean economics is a worthless field of study?
-
Which of the following statements are positive in nature and which are normative? a. A tax cut will raise interest rates. b. A reduction in the payroll tax would primarily benefit poor and...
-
Graph the behavior of the civilian unemployment rate from 1961 until the present using monthly data. Can you see the periods of recession that occurred in 19691970, 19731975, 1980, 19811982,...
Study smarter with the SolutionInn App