ITECH2004 Data Modelling Assignment - SQL

Assignment Help Other Subject
Reference no: EM132533158

ITECH2004 Data Modelling Assignment - SQL - Federation University Australia

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 Outcomes Assessed - The following course learning outcomes are assessed by completing this assessment:

- Describe relational algebra and its relationship to Structured Query Language (SQL).

- Interpret entity-relationship diagrams to implement a relational database.

- Demonstrate skills in designing and building a database application using a commercially available database management system development tool.

- Use a query language for data manipulation.

- Design and implement a relational database using a database management system.

- Utilise a query language tools and techniques to obtain data and information from a database.

Requirements -

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).

For Questions 3-14, use the tables that were created in Question 1 and the data that was loaded into those tables in Question 2.

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 - SQL Assignment File.rar

Reference no: EM132533158

Questions Cloud

Calculate the internal rate of return for machine : Calculate the internal rate of return for Machine A? [Hint: internal rate of return is the rate which results in a zero NPV using linear interpolation]
Designing team and team identity : Think about how to build teams in terms of designing the task, selecting the people, and then, managing their relationships.
Elaborate engaging with relevant case law : To what extent could you reconcile these two statements? Elaborate engaging with relevant case law.
What tasks do you complete when organising a risk assessment : What tasks do you complete when organising a risk assessment and What steps are involved in a risk assessment according to your organisation's procedures
ITECH2004 Data Modelling Assignment - SQL : ITECH2004 Data Modelling Assignment - SQL - Federation University Australia. Write the SQL code to create the table structures for the entities
Create appropriate general journal entries for consolidation : Vixen Ltd owns all the share capital of Post Ltd, Create the appropriate general journal entries for the consolidation worksheet at 30 June 2020.
Human rights or diversity in the workplace : Choose one Federal or State law regarding discrimination, human rights or diversity in the workplace. Tell us about that law and what that law is trying to achi
Mobile operating system attacks on rise : With mobile operating system attacks on the rise, it is going to be necessary to develop new solutions to mitigate cybersecurity threats.
Hospitality workplace in relation to eeo and harassment : What is the obligation of a hospitality workplace in relation to EEO and harassment?

Reviews

Write a Review

Other Subject Questions & Answers

  Culturally standardized unreason

What does Kluckhohn mean by the phrase "culturally standardized unreason"? Offer some examples of such unreason from your own culture.

  Calculate the percentage-of-sales method

Remember, one of the most difficult marketing decision facing companies is how much to spend on promotion. Thus, it is not surprising that industries.

  What defenses will the store assert

Ann sued a grocery store for injuries. She had slipped on some accumulated rainwater as she stepped on a rubber mat just inside the door to the store. Prior to the fall, the bag boy had placed a “wet floor” sign approximately six feet directly in fro..

  Difference between motivation and job satisfaction

What is the difference between motivation and job satisfaction, class? And why should managers be more concerned with motivation than with job satisfaction? Or should they? Why?

  What is osint and is osint really intelligence

What is OSINT. Is OSINT really intelligence. How has the history of information availability and information literacy affected OSINT

  What role does social security play in employee retirement

Please respond to the following questions: What role does Social Security play in employee retirement? What is the relationship between FICA, ERISA, and Social Security

  Impact of globalization and information technology

Assess the impact of globalization and information technology on the creation of small businesses. Determine if and how these two trends have helped or hindered the growth of small business in the U.S

  Discuss one strategy that you would implement when working

Discuss one strategy that you would implement when working with a child with a neurodevelopmental disorder? Why did you choose this specific strategy?

  Explain how the us could reduce these statistics

Research organ donation and explain how the U.S could reduce these statistics and get more individuals to sign up for organ donation.

  Describe autozones strategy

Conduct an environmental scan or SWOT analysis of AutoZone's current reality and recommend whether the company's current strategy is poised to succeed.

  How will effectiveness of the evaluation system be assessed

Will standards for adequate performance be set and how will they be determined? How will the evaluation system be introduced to the learner and to the faculty?

  What you have learned about children who are gifted

What you have learned about children who are gifted and talented. What are the special needs of young children who are gifted and talented? What are the special needs of older children?

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