Question: The Student database has the following Relation Schema: PRICE (Code, Description, RentFee, DailyFee) MOVIE (MovieNo, Title, Year, Cost, Genre, Code ) VIDEO (VideoNo, InDate, MovieNo

  1. The Student database has the following Relation Schema:
  • PRICE (Code, Description, RentFee, DailyFee)
  • MOVIE (MovieNo, Title, Year, Cost, Genre, Code)\
  • VIDEO (VideoNo, InDate, MovieNo)
  • DETAILRENTAL (RentNo, VideoNo, Fee, DueDate, ReturnDate, DailyFee)
  • MEMBERSHIP (MemberID, Name, City, State, Balance)
  • RENTAL (RentNo, Date, MemberID)

Using the above schema, write SQL queries that will answer/process the following:

  1. Find the movies which cost more than the average movie cost. Show movie title, year and cost. Append the dollar sign ($) at the beginning of the movie cost. (2 marks)

  1. Find the price type which has the maximum number of movies. Show price code, price description and the number of movies of that type. (2 marks)

  1. View to show all the members and movies they rented. Show movie title, dates of rent, due and return. (4 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!