ANSWER:
13.7:
13.8:
13.9:
13.10:
13.11:
Aggregate fuctions:
13.12:
13.13:
13.14:
13.15:
Thankyou, please like it.
Need SQL form Thanks a lot EIERCISES lowing tables form part of a database held in...
The following tables form part of a database held in a relational DBMS: Hotel (hotelNo, hotelName, city) Room (roomNo, hotelNo, type, price) Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo) Guest (guestNo, guestName, guestAddress) where Hotel contains hotel details and hotelNo is the primary key; Room contains room details for each hotel and (roomNo, hoteINo) forms the primary key; Booking contains details of bookings and (hoteINo, guestNo, dateFrom) forms the primary key; Guest contains guest details and guestNo is the primary key....
Create the following tables as part of a Hotel Business database: 1. Hotel (hotelNo, hotelName, city) where Hotel contains hotel details and hotelNo is the primary key 2. Room (roomNo, hotelNo, type, price) Room contains room details for each hotel and (roomNo, hotelNo) forms the primary key 3. Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo) Booking contains details of bookings and (hotelNo, guestNo, dateFrom) forms the primary key 4. Guest (guestNo, guestName, guestAddress) Guest contains guest details and guestNo is the...
2. The following tables form part of a database hield in a relatioual DBMS: (10 Points) Hotel Room Booking Guest hotelNo, hotelName, city {room No. hotelNo. Type.price) booking No, hotelNo, guestNo, date from date To roomNo) (guestNo. guestName. guestAddress) A. List the price and type of all rooms at the Shangri-La Hotel B. Listall guests staying at Shangri-La Hotel berween Jimmy I and January 31, 2020 Liste details of all rooms at the Shangri-La llore, including the name of the...
The following tables form part of a database held in a relational DBMS for University campuses: - Building (buildingNo , area) ClassRoom (roomNo , buildingNo , capacity) Reserving ( buildingNo , courseNo , timeFrom , day, roomNo) Course (courseNo , courseName) Generate the tuple relational calculus, and domain relational calculus expressions for the following queries: 1. List all buildings. 2. List all class rooms in building 14Kh with capacity >30 students 3. List all course names,...
I need help with this please, I'm very confused. Given the following relational model database schema: GUEST (email, address, phone_no, name) (phone_no) is a candidate key. Email and address are long strings, phone_no and name are also strings. TYPE (code, description) The type code is a numeric code and the description a length varying string. AMENITY (code, description) The amenity code is a numeric code and the description a length varying string. CITY (city_id, name, state, country) The city identification...
QUESTION 1 The following tables form part of a database held in a relational DBMS for storing the information of Customer, Item, Transaction, and temSale A transaction can contain multiple items and an item can be in multiple transactions as depicted in the following sample data Item(itemid, name, category, price Itemid pk) name category price Iteml Pencil Stationery $30 paperStationery Item2 $25 $15 Item3 Cards Stationery S40 Item4 Ink Stationery S13 Item5 Sprite Itemo Food S4 Milk Food Transaction ctransid,...