23.17 Using the Hotel schema given at the start of the Exercises at the end of Chapter 4, determine
whether the following queries are semantically correct:
(a) SELECT r.type, r.price
(b) SELECT g.guestNo, g.name
(c) SELECT r.roomNo, h.hotelNo
23.18 Again, using the Hotel schema, draw a relational algebra tree for each of the following
queries and use the heuristic rules given in Section 23.3.2 to transform the queries into a more
efficient form:
(a) SELECT r.roomNo, r.type, r.price
(b) SELECT g.guestNo, g.guestName