Design and implement a relational database

Assignment Help PL-SQL Programming
Reference no: EM132533556

ITECH2004 Data Modelling - Federation University Australia

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

Reference no: EM132533556

Questions Cloud

Describe the application of statistics in health care : Describe the application of statistics in health care. Specifically discuss its significance to quality, safety, health promotion, and leadership.
Ethical role model in all situations : Can a good leader have immoral or bad private morality? Is it important that the leader serve as an ethical role model in all situations?
Prepare journal entry to record estimated uncollectibles : During its first year of operations, Gavin Company had credit sales of $3,162,200; Prepare the journal entry to record the estimated uncollectibles
Defines leadership and management : Defines leadership and management. Defends or criticizes the view that leadership and management are different concepts.
Design and implement a relational database : Describe relational algebra and its relationship to Structured Query Language and Demonstrate skills in designing and building a database application
Explain the behavior approach : Explain the behavior approach and the two general kinds of behaviors that it is composed of. What is the central purpose of the behavior approach?
Steps to effectiveness : Explain at least two steps that leadership should take to be effective. Apply these steps to a current situation in which you are a follower.
Contemporary leadership : Identify the development level and style demonstrated in the situation. Explain whether the action taken was appropriate and effective.
What challenges you would anticipate for the proposals : Health Disparities: What challenges you would anticipate for the proposals, as well as arguments to overcome those challenges. 250 to 350 words.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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