You are asked to develop/manage a database for an association that organizes basketball tournaments.
Each year they host a number of tournaments in different locations, any number of teams can participate in any number of tournaments. Each tournament has a certain number of games. The following you have been given minimum attributes to store in the database. This is not an inclusive list, as it does not contain any keys needed in a table. Please add any items that you feel will be beneficial.
- ToureyID,
- TourneyDate,
- TourneyLocation,
- TeamName,
- HeadCoachFirstName,
- HeadCoachLastName,
- PlayerFirstName,
- PlayerLatName,
- PlayerStreetAddress,
- PlayerCity,
- PlayerZipCode,
- GameNumber (As stated earlier, each tournament has a certain number of games)
- CourtID (This is the court number where the game is being played. Just remember multiple games within a tournament will be played on the same court)
- WinningTeam (Team that won the game)
- HomeTeam & AwayTeam (Designate which team is Home and which is away within a game)
- PlayersScore (Score of each player in a specific game within a tournament)
Tasks to do:
- Develop a normalized schema for the database using MySQL Workbench
- Create the tourney DB using the model you just created (forward engineering)
- Insert values into the Database from the csv files provided.
- Perform the following queries:
- Provide locations where the association is holding tournaments
- Display all players and their address formatted suitably for a mailing list, sorted by zip code.
- Display teams and the name of their head coach.
- Show tournaments that have not been played yet.
- Display name of top 10 scorers (Players who scored highest) along with their score.
- Display players names along with their highest score
- List the player (names) whose highest score in a game is more than 10 points higher than their average.
- Create a view of all the tournaments that have been played at Red Rooster.
- Connect to this database using Python
- a) Display name of all the tournaments that were previously held.
Data:
You will find csv files that should give you most of the attributes that you need to complete the test.
What to submit:
- Screenshots of the schema
- Screenshots of your queries along with the output
- Screenshot of your code to insert values into the database.
- Screenshot of your python code
- Screenshot of results of your python code.
Note: Unless agreed upon ahead of time, there will be no extension to this. NO submission via email. No grade will be provided for a late submission.
Reviews
There are no reviews yet.