Question

IN SQLHotel Reservation Room Table Attribute name ATTRIBUTE DESCRIPTION Domain Range pk FK NULL Room Number Yes NO NO No Haddress l4- A customer wanted to reserve a room in the North Tower or South Tower find all the information about these two towers 5- F

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

4- The SQL query is--

SELECT * FROM `Hotel Reservation Room Table`

WHERE (location="North Tower" OR location="South Tower") and Reservationroom=false;

Explanation: To print any data we use SELECT statement.Here the location is either North Tower or South Tower so we use OP operator and the room has not be reserved so it false.The table name is Hotel Reservation Room table and table name is having spaces so we enclose the table name in back ticked symbol-``.

5-The SQL query is--

SELECT Haddress,RoomNumber

FROM `Hotel Reservation Room Table`

WHERE location="west tower";

Explanation:Firstly,In SQL to print any data we use SELECT statement.The syntax is--

SELECT column1,column2,..,columnn FROM table_name WHERE condition.we will use the WHERE clause after table name any condition we want to check.Here we want two columns(attributes),those are Haddress and RoomNumber.The table name is Hotel Reservation Room table and table name is having spaces so we enclose the table name in back ticked symbol-``.In WHERE clause the condition is location is equal to west tower.

6- The SQL query is--

SELECT * FROM `Hotel Reservation Room Table`;

Explanation: It is simple.To print any data in SQL we use SELECT statement.To select all data in the table we use * symbol.The table name is Hotel Reservation Room Table.

Hope you understand and like the answer.

Thank you..

Add a comment
Know the answer?
Add Answer to:
IN SQL Hotel Reservation Room Table Attribute name ATTRIBUTE DESCRIPTION Domain Range pk FK NULL Room...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Star Inn is a chain of hotels. The reservation system is uses a centralized reservation database....

    Star Inn is a chain of hotels. The reservation system is uses a centralized reservation database. The database contains booking information on all hotels of Star Inn. The following is a description of the conceptual model of the hotel reservation database at Star Inn. The database contains information about hotels, hotel rooms, customers, and reservation. A hotel can be identified by its identification number (hotel_id). It is also described by hotel_name, address and phone_no. Rooms are identified by room_no which...

  • Database Exercise I (50 pts): This exercise deals with a database that stores information about Hotel...

    Database Exercise I (50 pts): This exercise deals with a database that stores information about Hotel Management System. Customer (C email, name, country) Payment (Invoice id, C email, payment method, date) invoice (Invoice id, starus, invoice description) Has (Bill id. Invoice id) 9a Bill (Invoice id, Bill id, amount, Bname, type, date, reservation id) Reservation (Hotel id, room id, C email, date, period, reservation id) Rooms(Hotel id. room id, price, category) Hotel (Hotel id. H name. country) Own (room id,...

  • The owner of the B&B would like to know how much each room contributes to total...

    The owner of the B&B would like to know how much each room contributes to total revenues. In this regard, she would like a list of rooms (room ID and room name), and how much revenue each room brought in for 2019 (even including rooms that did not bring in any revenue; i.e., they weren't booked in 2019). Room revenue (for a given booking) are found in the total field in Bookings. You only need to consider bookings where check-in...

  • Use Case Modeling APPENDIX-A Online Hotel Reservation System RichOS hotels owner Mr. Tompkins wanted an online...

    Use Case Modeling APPENDIX-A Online Hotel Reservation System RichOS hotels owner Mr. Tompkins wanted an online reservation system (HORSE) for his new hotel located in Antalya. The hotel has two types of rooms: regular and suit. In order to make a reservation or cancel any other, the clients (persons or travel agency) must logon the system. The clients should register to the system through their names, e-mail and telephone information. Clients will be able to query the availability of the...

  • Plz someone answer my database questions post Exercise I (50 pts): This exercise deals with a...

    Plz someone answer my database questions post Exercise I (50 pts): This exercise deals with a database that stores information abhout Hotel Management System. Customer (C email, name, country) Payment (Invoice id. C email, payment method, date) Invoice (Invoice id, starus, invoice description) Has (Bill id, Invoice id) Bill (Invoice id, Bill id, amount, Bname, type, date, reservation id) Reservation (Hotel id., room id. C email, date, period, reservation id) Rooms(Hotel id, room id. price, category) lotel (Hotel id, H...

  • Plz someone answer my database questions post Exercise I (50 pts): This exercise deals with a...

    Plz someone answer my database questions post Exercise I (50 pts): This exercise deals with a database that stores information abhout Hotel Management System. Customer (C email, name, country) Payment (Invoice id. C email, payment method, date) Invoice (Invoice id, starus, invoice description) Has (Bill id, Invoice id) Bill (Invoice id, Bill id, amount, Bname, type, date, reservation id) Reservation (Hotel id., room id. C email, date, period, reservation id) Rooms(Hotel id, room id. price, category) lotel (Hotel id, H...

  • this is about databases and SQL, please help me with this and i promise i will...

    this is about databases and SQL, please help me with this and i promise i will thumbs you up :) let me know if you need more info please try to get this done i will definitely thumbs you up :)) PROJECT TOPIC: Library: Books, Copies of the books, Patrons, Checkouts when creating ERD diagram, the notation must be in crows notation, attached at the bottom is an example of crows foot notation in databases so you can understand. PDF...

  • this is about databases and SQL, please help me with this and i promise i will...

    this is about databases and SQL, please help me with this and i promise i will thumbs you up :) let me know if you need more info please try to get this done i will definitely thumbs you up :)) PROJECT TOPIC: Library: Books, Copies of the books, Patrons, Checkouts when creating ERD diagram, the notation must be in crows notation, attached at the bottom is an example of crows foot notation in databases so you can understand. PDF...

  • Your page will simulate a reservation form for a hotel stay. It should include the following:...

    Your page will simulate a reservation form for a hotel stay. It should include the following: Name à Text field Email à Text field Number of nights à Text field (of size 3) Type of room? à Select box with options for Regular ($100), Deluxe ($150), Suite ($250) Would you like to join our Frequent Travellers Club? If you join, we will take $50 off your first order. à Checkbox Write the function that will confirm what the user requested....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT