Ezekielt96 / Database-Systems-

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assignment4 - Summary Queries and Subqueries

  1. Copy the URL for this repository and clone it to your front server home directory: git clone url where url is the URL for this repository
  2. Open the sql script file assign4.sql in a remote file editor
  3. Write the queries using the movie_ratings database and paste the solutions to the following exercises in the assign3.sql file
  4. When you've completed the exercises, save the assign4.sql file. Commit and push your solutions to GitHub.
cd assign4
git add .
git commit -m "completed assignment 4"
git push

Exercise 1

Find the number of distinct movies that were rated from the 'Rating' table using a summary query.

Exercise 2

Find the number of ratings for 4-star movies.

Exercise 3

Find the date of the most recent review.

Exercise 4

Find the date of the first four-star review.

Exercise 5

List each reviewerID and the number of movies reviewed.

Exercise 6

List the reviewer ids for reviewers with more than 1 review.

Exercise 7

Use a subquery to list all reviews for the Movie "Gone with the Wind".

Exercise 8

Find the names of all reviewers who rated a movie four-stars or higher using a subquery.

About