Question: Task 5 (Question language: SQL and relational algebra) Consider the following tables (relationship schemes): SAL (Name, Number) COURSE (Id, Name, Subject) ROOM BOOKING (Course, Room,

Task 5 (Question language: SQL and relational algebra)
Consider the following tables (relationship schemes):
SAL (Name, Number)
COURSE (Id, Name, Subject) ROOM BOOKING (Course, Room, Date)
(Primary keys are in bold.)
SALE BOOKING.Course constitutes foreign key towards KURS.Id SALE BOOKING.Sal constitutes foreign key towards SAL.Name
Formulate the following questions in SQL and relational algebra:
a) Which halls have been booked for Database Methodology? Enter the names of the halls + number of people as
each hall holds.
b) Which courses have used (booked) all halls? c) Which halls have never been booked?
Formulate the following question in SQL:
d) Which course (s) have booked the most halls?

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!