Implement a relational database and Utilise a query language

Assignment Help Software Engineering
Reference no: EM132660020

Assignment: SQL

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

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

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.

Documentation requirements
1. Prepare a business style report which contains the following:
a). Each query and associated output
b). Full APA referencing of any resources used
A suggested structure for the above report is provided. You can use it as a guideline for presenting your business report.For assistance in report writing techniques,

Report file name: itech2004_2_report_yourname_studentID

Title page
Executive summary
Table of contents
1.0 Introduction
2.0 SQL Statements Report
2.1 Question 1
2.2 Question 2
2.3 Question 3
2.4 Question 4
...
2.18 Question 18
3.0 Conclusion
4.0 Bibliography

Attachment:- DATA MODELLING.rar

Reference no: EM132660020

Questions Cloud

What purpose do our emotions serve in our lives : What purpose do our emotions serve in our lives? Are they a generally positive or negative aspect of our selves
What would be the estimated cost for quality control : What would be the estimated cost for 2019 for Quality control inspections? Briggs International manufactures aerial ladders for industrial use.
What is latest date on which Wanda can replace property : What is the latest date on which Wanda can replace the involuntarily converted property to qualify for § 1033 if the involuntary conversion is a condemnation
What would be the estimated cost for sales staff wages : Briggs International manufactures aerial ladders for industrial use. What would be the estimated cost for 2019 for Sales staff wages?
Implement a relational database and Utilise a query language : Interpret entity-relationship diagrams to implement a relational database and Utilise a query language tools and techniques to obtain data and information
Compare the various theories associated with crime causation : Compare and contrast the various theories associated with crime causation, and provide supporting information and/or evidence as to the theory that seems most.
What would be the estimated cost for utilities : What would be the estimated cost for 2019 for Utilities? In 2018 Briggs produced and sold 1,000 ladders at $1,000 each. Management expects to sell 1,200 ladders
What is Karl recognized gain : On August 1, 2019, Karl sells the residence for $315,000. On June 13, 2019, Karl purchases a new residence for $367,000. What is Karl recognized gain
What is the relationship between thinking and the mind : What is the relationship between thinking and the mind? Between feeling and the mind? And between other mental phenomena and the mind?

Reviews

Write a Review

Software Engineering Questions & Answers

  Produce Use Case Overview Diagram for iMega system

Continuing on the requirements engineering activities for iMega system. Your task is to produce: Use Case Overview Diagram and Domain Model

  Moving pictures- stakeholder interviewsmoving pictures is

moving pictures- stakeholder interviewsmoving pictures is an application that captures information about movies as well

  Study on dissimilarities between test case executions

CSCI926 - CSCI426 - Software Testing and Analysis - Conduct experiments using the faulty versions of the subject programs, the MRs, and the test cases

  Grassroots computing changes way software is designed

Describe how grassroots computing changes the way software is designed, developed, tested, and maintained in typical organization. Write dwon the advantages and disadvantages of grassroots computing?

  List examples for each of the given items

List examples for each of the following items that may be found on a use case diagram that models such a system: use case; extends use case; includes use case; actor; specialized actor.

  Determine the greatest magnitude negative number

Determine the greatest magnitude negative number one can represent in an 8-bit 2's complement code? Write your result in binary and decimal.

  Advantages of open-source over proprietary software

Based on the Tehrani (2008) article, what are some of the advantages and disadvantages of open-source over proprietary software

  What types of testing should be performed

What types of testing should be performed? What types of test data should be used? Identify the specific groups of people who need training on the new system.

  List the names of all the business layer classes

Create the application class using an appropriate application name. This name must reflect the whole solution for software development 3.

  Assignment in powerpoint

Assume you have been asked to help new students out with the many new and exciting issues surrounding online education at AIU.

  Predict challenges of cost estimation for software projects

Predict the challenges of cost estimation for software development projects where requirements are usually not clear in early stages of the project.

  Choose one of the media articles or case studies listed

All the claims shown on the Rationale diagram must appear in the essay, and all claims made in the essay must appear on the Rationale diagram. The essay must present all the detailed information that the Rationale diagram cannot.

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