Solution
9)
SELECT Mem_FName, Mem_LName, Movie_Title FROM MEMBERSHIP
JOIN RENTAL ON MEMBERSHIP.Mem_Num = RENTAL.Mem_Num
JOIN DETAILRENTAL ON
RENTAL.Rent_Num = DETAILRENTAL.Rent_Num
JOIN VIDEO
ON DETAILRENTAL.Vid_Num = VIDEO.Vid_Num
JOIN MOVIE
ON MOVIE.Movie_Num = VIDEO.Movie_Num;
---
10)
SELECT Mem_FName, Mem_LName, Movie_Title FROM MEMBERSHIP
JOIN RENTAL ON MEMBERSHIP.Mem_Num = RENTAL.Mem_Num
JOIN DETAILRENTAL ON
RENTAL.Rent_Num = DETAILRENTAL.Rent_Num
JOIN VIDEO
ON DETAILRENTAL.Vid_Num = VIDEO.Vid_Num
JOIN MOVIE
ON MOVIE.Movie_Num = VIDEO.Movie_Num
WHERE Mem_FName = 'LEWIS'
AND Mem_LName = 'ROSALES';
---
11)
SELECT SUM(Detail_Fee), Mem_Num FROM DETAILRENTAL
JOIN RENTAL ON DETAILRENTAL.Rent_Num = RENTAL.Rent_Num
GROUP BY Mem_Num;
12)
SELECT SUM(Detail_Fee), Mem_Lname FROM DETAILRENTAL
JOIN RENTAL ON DETAILRENTAL.Rent_Num = RENTAL.Rent_Num
JOIN MEMBERSHIP
ON RENTAL.Mem_Num = MEMBERSHIP.Mem_Num
GROUP BY Mem_LName;
---
Answered all the queries
if you have any doubts, please mention, love to help
all the best
Scenario: Elite Video is a startup company providing concierge DVD kiosk service in Kennesaw, GA. FIGURE...
EliteVideo is a startup company providing concierge DVD kiosk service in upscale neighborhoods. Each store can own several copies (VIDEO) of each movie (MOVIE). For example, the store may have ten copies of the movie Titanic. In this case, Titanic would be an instance in the MOVIE table, while each rentable copy would be an instance in the VIDEO table. A rental transaction (RENTAL) involves one or more VIDEOs being rented to a member (MEMBERSHIP). A video can be rented...
NEED the SQL query that solves each problem 4) List the member numbers of all members who rented a movie. Do not list duplicates. (w3schools -> SQL Distinct) 5) List the member names [first and last] for members from Kentucky {KY}. (w3schools -> SQL Where) 6) List the names of all movies in alphabetical order (w3schools -> SQL ORDER BY) 7) List the movie title and cost in descending order by cost (w3schools -> SQL Order By) 8) List all...
2) What were the total rental fees for each member by member last name? (w3schools-> SQL Inner Join& SQL Functions Count, Avg, Sum & SOL Group By)- this requires 2 joins 13) What were the total rental fees for members treport Mem num who total fees were greater than $5-change the output label to FeesMoreThan5S? (w3schools->SQL Inner Join & SQL Functions Count, Avg, Sum& SQL Group By & SQL Having) 14) What was the highest fee paid by each member...