[SOLVED] CS307-Assignment 2 Basic Queries

40.99 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product

Single table query

  1. List the non-US movies released in 1991 and with titles begin with “The” .
  2. How many actors have acted more than 30 movies.
  3. What is the percentage of American films in all films in the 1970s. (The result should be expressed percentage and approximated to 2 decimal places )

Multiple table query

  1. List the names of the known directors of 2016 films by ascending order (no need to display anything about the film). The film only from following regions: kr, hk, gb, ph. If the film is Korean(kr) or HONG KONG(hk), the name should be displayed as surname followed by first name, otherwise it must be first name followed by surname.

only known by one name have a null row returned for them. use surname and first name.

  1. List all films made after 2000 (including 2000) with the max number of actors borned after 2000 (including 2000).

you can use subquery factoring: with … as (…)

The result set would be multiple rows if more than one films have max number of actors

  1. List the number of different actors who have been played in the same movie with Yifei Liu (Yife herself is not included).
Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.