MSDS7330 Assignment 5-Mid-Term Exam Solved

30.00 $

Category:

Description

3/5 - (2 votes)

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:

  1. Develop a normalized schema for the database using MySQL Workbench
  2. Create the tourney DB using the model you just created (forward engineering)
  3. Insert values into the Database from the csv files provided.
  4. Perform the following queries:
    1. Provide locations where the association is holding tournaments
    2. Display all players and their address formatted suitably for a mailing list, sorted by zip code.
    3. Display teams and the name of their head coach.
    4. Show tournaments that have not been played yet.
    5. Display name of top 10 scorers (Players who scored highest) along with their score.
    6. Display players’ names along with their highest score
    7. List the player (names) whose highest score in a game is more than 10 points higher than their average.
  1. Create a view of all the tournaments that have been played at Red Rooster.
  2. Connect to this database using Python
  3. 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:

  1. Screenshots of the schema
  2. Screenshots of your queries along with the output
  3. Screenshot of your code to insert values into the database.
  4. Screenshot of your python code
  5. 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.

 

  • Midterm-dmf8bo.zip