CSC 436 - Assignment #2
PostgreSQL
Humungo Video Stores Queries
Queries:
-  Find the names of all films that cost more than $10 million.
 -    Find the average salary paid on each film, sorted by the film 
title.
 -   Find the names and roles of all actors in the film "DOLORES 
CLAIBORNE".
 -  Find the names of all actors in films with Kevin Bacon.
 -   Display the number of items purchased by each shopper, sorted by 
shopper's 
last name.
 -  Which items (film title, format and price) that are being purchased 
cost more 
than $25?
 -   Show how much money each shopper has spent altogether.  Sort the 
results by 
the total spent by each shopper.
 -   I want to buy every DVD starring JOHN TRAVOLTA.  How much will this 
cost?
 -  What is the least expensive VHS made by PARAMOUNT?
 -   Find the director and studio that paid the highest salary for any 
actor. 
 -   Find the names of all films that are not in any current shopping 
carts.
 -   What is the title, price (and format) of the film that has the 
highest 
budget?
 -   For each film that has both DVD and VHS formats, find the total 
number of 
items in inventory (DVDs plus VHSs).
 -   How many films has the lowest paid actress been in? (Use average 
salary over 
all films)
 
Also:
Create two of your own interesting queries, each using at least two
relations.  Include the English description of the query as well as
the SQL and the result.