Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CIS 450/550: Database and Information Systems Homework 1 ‒ SQL

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
18-02-2021
Written in
2020/2021

CIS 450/550: Database and Information Systems Homework 1 ‒ SQL Due by by 23:59:59 EDT on Sept. 16, 2019 For all questions, please submit the query only. Submission instructions are on Piazza Part 1: Querying an AWS Oracle database (60 points) IMDB Database. The database you will use consists of a portion of the Internet Movie Database (IMDB.com). It has been uploaded to Amazon's AWS/RDS and conforms to the following schema (where keys are underlined): ● movie (   1. (2 points) Connecting to the Oracle instance. For all questions, please submit the query only. Write SQL queries for each of the following questions. A good reference for Oracle syntax can be found at 2. (3 points) 3. (5 points) Print the first 20 distinct keywords that begin with a letter (rather than a number) in alphabetical order. Schema: (kwd_name) 4. (5 points) For the movie 'Kill Game' released in 2018, print the name of all actors and their role in the movie. 5. (5 points) Print the title and number of genres for each movie released in 2001 whose title begins with ‘A’. If the movie has no genres, the number of genres should be 0. Schema: (title 6. (7 points) Print the movie title and director name of all movies with genre ‘Comedy’ that appeared in 2017 and were directed by a director whose (first) name starts with ‘Dav’. 7. (7 points) Print the name of the actor who has, in a given movie, played the largest number of different characters, along with the title of the movie and number of different characters played. Result schema: ( 8. (8 points) Print the crew_id of directors who have directed at least one movie in every genre that starts with ‘A’. Note that directors are crew rather than actors. Your query should instance independent, e.g. if another genre starting with ‘A’ was added along with new movies of that genre your query should still be correct. Result schema: (crew_id) ● movie (movie_id: number(7), title: varchar(255), runtime: number(7), release_year: number(7), rating: float(2), num_ratings: number(7)) ● crew (id: number(7), gender: number(7), name: varchar(255)) ● movie_cast(id: number(7), gender: number(7), name: varchar(255)) -- Think of this as a relation of actors ● crew_in (movie_id: number(7), crew_id: number(7), job: varchar(255)) -- movie_id REFERENCES movie(movie_id) -- crew_id REFERENCES crew(id) ● movie_genre (movie_id: number(7), genre_name: varchar(255)) -- movie_id REFERENCES movie(movie_id) -- genre_name REFERENCES genre(name) 9. (8 points) Print name of directors who have only directed near-top rated movies after 2015. By “near-top” we mean in the interval [m-1, m], where m is the max rating of movies released after 2015. Recall that directors are crew rather than actors. Schema: (name) 10. (10 points) Print the name of director and year, where the director has directed more than one top-rated movie in that year, where “top-rated” means the max rating within the year. Schema: (name, year)   Part 2: Setting up and Querying a MySQL Instance (40 points) The goal of the second part of the homework is to get experience with MySQL (MariaDB v. 10.2.25), one of the most popular open source databases, and to understand how to create your …………………………………CONTINUED………………………………….

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
February 18, 2021
Number of pages
10
Written in
2020/2021
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$15.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
docguru Chamberlian School of Nursing
Follow You need to be logged in order to follow users or courses
Sold
286
Member since
5 year
Number of followers
257
Documents
2203
Last sold
2 months ago
doc guru

get all the latest docs reviewed for top grades,,,,

3.5

50 reviews

5
19
4
11
3
6
2
4
1
10

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions