Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE HELP ME ANSWER MY ITM-315(DATABASE SYSTEMS) questions. PLEASE USE Microso

ID: 3709024 • Letter: P

Question

PLEASE HELP ME ANSWER MY ITM-315(DATABASE SYSTEMS) questions. PLEASE USE Microsoft Access to answer the questions.

For some queries, the save button may not appear after running the query. Use file>save where necessary to save the queries.

Create and save the following queries (save as query 1 through query 14) in the provided database: hotel spring 18 ch 10. Rename the database as hotel spring 18 ch 10lastname or hotel spring 18 ch10lastnameandlastname and submit via blackboard by the due date/time.

Query1: Add an Amenity table to the database with the following columns: hotel_id and amenity_name (assume amenity names are unique). hotel_id should be designated as a foreign key referencing the hotel table. Hint: use integer as the data type for hotelno. Make sure to designate the primary key-which is the combination of hotel_ID and Amenity name.

Query 2: Add a column to the appropriate table to record the state the hotel is in.

query 3: change the name of the Holiday Inn in Tulsa to Holiday Inn Deluxe

query 4: delete room 123 in hotel 6 from the database

query 5: Add the following amenity to the database: hotel 6 has a swimming pool.

Query 6: Create a query that shows all of the guests and the bookings of those rooms. The result should include all guests, even those guests that have not booked any rooms. Show the guestNo, guestFirst, guestLast, HotelNo aand roomNo in the result.

Query 7. How many bookings have there been in each city?

Query 8: List each employee’s first name, last name, their hotelNo, their manager’s first name and their manager’s last name.

Query 9 which guests have yahoo email accounts?

Query 10. which hotel (by name) has the most expensive room ?

query11 which guests (by name) have not booked rooms in hotel 1?

Query 12. what is the average price of hotel rooms in Stillwater?

Query 13. List the count of the single rooms for each hotel for any hotel that has less than 2 single rooms.

query 14: drop the standard price column from the room table.

HOTEL SPRING DATABASE

All Access Obje...og employee guest l hotelE room guestNo dateFrom dateTo roomNo ratebooked Click to Add Tables 8/3/2016 2/1/2015 8/4/2016 2/6/2015 13/13/2016 3/15/2016 8/9/2014 8/10/2014 2/8/2015 7/5/2016 3/1/2015 2/4/2015 6/4/2014 3/7/2015 23/10/2015 3/15/2015 2/6/2015 2/4/2014 9/8/2015 9/15/2015 3/9/2016 3/14/2016 2/2/2015 015 3/6/2016 3/26/2016 3/31/2016 13 5/12/2014 5/13/2014 2/8/2015 11 5/11/2014 5/12/2014 8 4/15/20164/18/2016 4/4/2015 4/4/2016 4 3/11/2016 3/15/2016 2/6/2015 2/7/2015 2/6/20152/10/2015 9 4/15/20164/18/2016 3 3/22/2016 3/25/2016 10 2/22/2015 2/24/2015 10 3/12/20143/13/2014 401 72 booking 101 E employee E guest 2/3/2015 7/3/2016 1 2/28/2015 2/3/2015 11 5/31/2014 3/5/2015 hotel room 101 212 91 100 100 100 100 100 110 110 2 2/4/2015 3 1/31/2014 401 2/1/2015 25/18/2015 5/23/2 2 3/4/2016 210 421 130 2/5/2015 135 4/1/2015 4/1/2016 160 160 160 212 214 2/5/2015 2/1/2015 412 411 321 410 312 312 4 190

Explanation / Answer

Solution:

Query 1:

CREATE TABLE Amenity(
    hote_id int(20) NOT NULL,

amenity_name varchar(40) NOT NULL UNIQUE,

  PRIMARY KEY(hotel_id, amenity_name)

CONSTRAINT FK_hotel_id FOREIGN KEY (hotel_id)
    REFERENCES hotel(hotelNo)


);

Query 2:

ALTER TABLE hotel
ADD COLUMN status boolean;

Query 3:

UPDATE hotel
SET hotelName= 'Holiday Inn Delux'
WHERE hotelName = 'Holiday Inn';

Query 4:

DELETE FROM hotel
WHERE WHERE roomNo= 123 AND hotleNo= 6;

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote