ITECH 2004 Data Modelling Assignment

Assignment Help Database Management System
Reference no: EM132531454

ITECH 2004 Data Modelling - Federation University

Assignment - SQL

Overview
The purpose of this task is to develop student's skills in designing and implementing a relational database for a given case study.

Learning Outcome 1: Describe relational algebra and its relationship to Structured Query Language (SQL).
Learning Outcome 2. Interpret entity-relationship diagrams to implement a relational database.
Learning Outcome 3. Demonstrate skills in designing and building a database application using a commercially available database management system development tool.
Learning Outcome 4. Use a query language for data manipulation.
Learning Outcome 5. Design and implement a relational database using a database management system.
Learning Outcome 6. Utilise a query language tools and techniques to obtain data and information from a database.

Background

Major League Soccer (MLS)1 is a men's professional soccer league played in the United States. It is equivalent to European (and South American) football. The league comprises 24 teams - 21 in the U.S. and 3 in Canada.
There are many games played in each season by many teams. You can find the details of the team names and home locations listed at this Wikipedia page:

You are part of a SPORTS PERFORMANCE team and you currently gather the following information:
- Video footage of each game - several frames per second, and recorded and stored in MP4 format.
- GPS track logs of each player for each game, including the three referee staff, and even the location of the ball
- Transcription of the "game play" by professional auditors, who have recorded all the important events during a game: when a pass was made, and between which people; whether there was a tackle; shots on goal; corners; fouls and any resultant cards; and so on.
You have been tasked to start analysing this data, and the following SQL commands are a mixture of preprocessing and the beginnings of some useful statistics.

1. Write the SQL code to create the table structures for the entities shown in Figures 1 and 2. The structures should contain the attributes specified in the ERD. Use data types that are appropriate for the data that will need to be stored in each attribute. Enforce primary key and foreign key constraints as indicated by the ERD.

2. The following descriptions and files (XLSX) provide a very small portion of the data that will be kept in the database. The data needs to be inserted into the database for testing purposes. Write the INSERT commands necessary to place the following data in the tables that were created in Question 1 (If required by your DBMS, be certain to save the rows permanently).

Table: EventsDataView

Refer to accompanying data file: "EventsDataView.xlsx".
• There are two teams listed in this example data - Team1 and Team2. Team2 rows are highlighted in red for ease of viewing.
• Type and Subtype refer to the different kinds of events that can occur in a game - for instance there are several ways a ball can be lost, one of which is by interception (see row 13); for instance there are several different kinds of set pieces, such as "Throw In's" (see row 16), and also "Corners" (not listed).
• Period is either 1 or 2, i.e. first half or second half of the game.
• "Start Video Frame" and "End Video Frame" refer to the segment of video footage where this Event is found. "Start Time [s]" and "End Time [s]" refer to the time period for this same Event.
• "From" refers to the first player involved in the Event, sometimes there is only a first player and not a second ("To"), but if the event is a PASS then there are two players listed.
• StartX,Y and EndX,Y refer to the geographic positions of the beginning and end of this Event.


3. Write the SQL command to change the season year for season number 3 to 2017.

4. Write SQL command(s) to create a derived attribute that represents a new surrogate primary key for the Game table. It should be comprised of character data, created from the location and date attributes.

5. Write SQL command(s) to create a new table called EventTypes that contains a single listing of all Event types from EventsDataView.

6. Write SQL command(s) to create a new table for player statistics. The table will contain the Players name or ID, and include a derived attribute which represents the average position played on the pitch. The attribute should accept null values.

7. Write SQL command(s) alter the TracksDataView table to include a derived attribute named DistanceFromBall which represents the Euclidean distance between each player and the ball.. The attribute should accept null values.

8. Alter the Game table to include attributes that represent the final score of the game, and update with some simulated values.

9. Alter the EventsDataView and TracksDataView tables to include an attribute named PitchArea to store character data up to ten characters long. The attribute should have a constraint to enforce the domain ("Area1," "Area2,", "Area3" and "Area4") and have a default value of "Unknown."

10. Write SQL command(s) to cerate a new table called TrackLogs and extract all tracklog data into this. The attributes will be the new primary key from Q2, and also Date, PlayerID, Xposition, Yposition, Time.

11. Write SQL command(s) to see if any particular players have been sent off (Type="CARD", Subtype="RED") more than once by a particular referee.

12. Alter the player statistics table to include attributes named "YellowCards" and "RedCards" which represent the count of these cards issued to a player. The attribute should not accept null values, and it should have a default value of 0.

13. Create a new table to contain the following statistics about each game: the number of Cards issued; the number of passes; and, the number of scoring attempts.

14. For each scoring event calculate derived attributes which represent the distance of the scorer from the goal line, and the distance from them to the nearest opponent.

Attachment:- Data Modelling.rar

Reference no: EM132531454

Questions Cloud

Does one type of stigma predominate in the talk : Does one type of stigma predominate in his talk? Which of Delle's personal values or beliefs were challenged by his internalizations about his own illness.
Team members in organizations often play various roles : Team members in organizations often play various roles. What roles do you tend to play in group settings in organizations? What roles do you try to avoid? Why?
Describe way for adolescents to rebel against the parents : According to the "storm and stress" view of adolescence, sexual behavior is one way for adolescents to rebel against their parents. The text suggests that.
How your behaviors in adolescence impacted rest of family : Share both the bright and dark sides of this time period and share ideas on how to get through it in the healthiest manner. Let him or her in on what you wished
ITECH 2004 Data Modelling Assignment : ITECH 2004 Data Modelling Assignment Help and Solution, Federation University - Assessment Writing Service - Describe relational algebra and its relationship
Compute the npv statistic for project y : Compute the NPV statistic for Project Y if the appropriate cost of capital is 11 percent.
How a professional counselor can provide support : Write a 1,000-1,250-word essay in which you consider the socioemotional response of adults and adolescents regarding divorce and custody arrangements.
Principles of health and disease : Blood transfusions are sometimes required in healthcare. Based on what you know about blood anatomy discuss why patient would need transfusion of PRBC,
In what ways cultural or religious belief influence attitude : In what ways do you think cultural and/or religious beliefs influence our attitude towards psychological intervention (therapy/medicine)?

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd