Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 4 Consider the following relational database: CUSTOMER (CustID, CustFName, CustLName, CustAdd, City, State, Country, PhoneNum) MOVIESHOWTIME (MovieShowTimeID, Time, Date, MovieID, HallID, CustID) MOVIE

 

QUESTION 4 Consider the following relational database: CUSTOMER (CustID, CustFName, CustLName, CustAdd, City, State, Country, PhoneNum) MOVIESHOWTIME (MovieShowTimeID, Time, Date, MovieID, HallID, CustID) MOVIE (MovieID, MovieName, Length) HALL (HallID, HallName) SEAT (SeatNum, SeatDetails, HallID) a) Add new attribute for table MOVIE named "Genre". (4 marks) b) Display all movie name which showing on 23/06/2022. View the results by movie name in descending order. c) Total number of customers for each hall. d) Display movie genre with highest sales. (4 marks) (4 marks) (4 marks) e) Total number of customers who are watching "Mat Kilau". (4 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

a To add a new attribute named Genre to the table MOVIE you would alter the table structure and add ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database management systems

Authors: Raghu Ramakrishan, Johannes Gehrke, Scott Selikoff

3rd edition

72465638, 978-0072465631

More Books

Students also viewed these Databases questions