Design and implement a relational database

Assignment Help Other Subject
Reference no: EM132643502

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). S1. Interpret entity-relationship diagrams to implement a relational database.

Learning Outcome 2: Demonstrate skills in designing and building a database application using a commercially available database management system development tool.

Learning Outcome 3: Use a query language for data manipulation.

Learning Outcome 4: Design and implement a relational database using a database management system.

Learning Outcome 5: Utilise a query language tools and techniques to obtain data and information from a database.

Assessment Details

Background

In this assignment you are asked to write several SQL queries on a relational movie database. The data in this database is from the IMDB website

Requirements

Question 1. Write the SQL code to create the table structures for the entities shown in Figure 1. The diagram was created using Microsoft Access designer. The structures should contain the attributes specified in the diagram. 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 diagram.

Question 2. The following tables provide some example data that will be kept in the database. Write the INSERT commands necessary to place the following data in the tables that were created in Question 1. Alternatively provide the text files (copy and pasted into your final report) and the open/insert from file commands..

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

Question 3. Write the SQL command to find the name and year of the movies that contain the word "the".

Question 4. Write the SQL command to return the name of all genres and name of movies together in a single list.

Question 5. Write the SQL command to aggregate sum the number of ratings and average number of stars per reviewer.

Question 6. Write the SQL command to list the names of the actors who did not play a role in the movie Deliverance.

Question 7. Write the SQL command to find the titles of all movies that have more than one reviewer.

Question 8. Write the SQL command to find the movie title, and the total number of actors that appeared in that movie, and arrange the result according to the number of actors in descending order.

Question 9. Write the SQL command to find the titles of all movies where the average stars rating is higher than 8.0 and the actor was Christian Bale.

Question 10. Update the director table to set the values in DETAIL_RETURNDATE to include a date of birth (dob) component, and also correct some of the name mistakes. For those not listed, assume the original name is correct, and also give a null value for dob. Make each entry match the values shown in the following Table.

Question 11. Write the SQL command to list all the directors who have not directed a movie since 2000.

Question 12. Write the SQL command to list all the last movie that each actor has appeared in.

Question 13. Write the SQL command that determines the total length of film time for all the films that an actor has appeared in.

Question 14. Write the SQL command to find movie title and number of stars for each movie that has at least one reviewer and find the least number of stars that movie received and sort the result by number of stars.

Question 15. Write the SQL command to determine if any actors worked with the same director more than once.

Question 16. Write the SQL command to list all directors in descending order of the number of films they directed.

Question 17. Write the SQL command to find the film(s) with the largest cast. Find the film(s) with the smallest cast. In both cases, also return the size of the cast.

Question 18. Write the SQL command to find the films with more women actors than men.

Attachment:- Data Modelling.rar

Reference no: EM132643502

Questions Cloud

Describe the effect on the financial statements : Describe the effect on the financial statements when an adjustment is prepared that records (a) unrecorded revenue and (b) unrecorded expense
What total amount should be reported as cash at year-end : What total amount should be reported as "cash" at year-end? At year-end, Myra Company reported cash and cash equivalents which comprised
Describe programming features available in r : Compare the statistical feature of R to its programming features. In a table format, describe the programming features available in R,
Calculate the net present value of three buildings : Calculate the net present value of three buildings, assuming a 10% cost of funds. (For calculation purposes, use 5 decimal places as displayed)
Design and implement a relational database : Design and implement a relational database using a database management system and Utilise a query language tools and techniques to obtain data and information
Determine the best financing for the purchase : Determine the best financing for the purchase of a new piece of equipment. The vendor is offering repayment options of $10,200 at the end of each year
Create the t-accounts for each account : Create the T-accounts for each account, enter the unadjusted balances, post the adjusting journal entry, and report the adjusted balance.
How systematic and unsystematic risks affect risk planning : Explain how systematic and unsystematic risks affect risk planning? Name 3 or more systematic or unsystematic risks a company might face.
Prepare the closing entry required at september : Prepare the closing entry required at September 30, 2018. (If no entry is required for a transaction/event, select "No Journal Entry Required)

Reviews

Write a Review

Other Subject Questions & Answers

  Explain socrates response to meletus accusation

Explain Socrates' response to Meletus' accusation that he corrupts the youth. Is Socrates' response adequate? Why or why not?

  What problems are associated with assessing students with id

What problems are associated with assessing students with ID? What are the characteristics of the teacher's students with ID that result in eligibility for special education?

  Find at least four drawings of cave-not counting

Find at least four drawings of the Cave-not counting the ones we did in class which are masterpieces and have few faults.

  Explain the factors that affect the health of communities

Create a 10-15 slide PowerPoint presentation that compares how different communities respond to crises, describes obstacles to providing health care services related to community crises, and explains current practices for providing health care ser..

  How to set up your word processor for apa style

The purpose of this assignment is to provide you with the opportunity to select a topic in the particular area in which you have an occupational.

  Personal Development for Leadership and Strategic Management

Assignment - Personal Development for Leadership and Strategic Management. Analyse the knowledge and skills in leadership and strategic management

  Compare and contrast holism versus reductionism

This research paper will compare and contrast Holism (Systems Thinking) versus Reductionism. The research paper must be submitted using Safe Assign. Compare and contrast Holism versus Reductionism

  Explain the steps taken to ensure the requirements of job

Absent fully qualified candidates for cybersecurity positions, explain the steps taken to ensure the requirements of the job are still accomplished.

  Identify the impact of abuse or addiction on individuals

Upon successful completion of this course the student will: Identify the impact of abuse/addiction on individuals, communities and culture in the US.

  Analyze the nature of the organization involvement

Analyze the nature of the organization's involvement, if any, in the 2009 incident at Fort Hood and the 2011 attack at Benghazi. What evidence points toward.

  Briefly describe whose civil rights martin luther king

Briefly describe whose civil rights Martin Luther King

  Ethanol is produced by the hydration of ethylene

Ethanol is produced by the hydration of ethylene. Some of the ethylene is converted to diethyl ether in a side reaction

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