Saved Bookmarks
| 1. |
Conside the relations, City (city_name, state) and Hotel (name, address, city_name). Answer the following queries in relational algebra (a) Find the names and address of hotels in Kochi. (b) List the details of cities in Kerala state. (c) List the names of the hotels in Thrissur. (d) Find the names of different hotels. (e) Find the names of hotels in Kozhikode or Munnar. |
|
Answer» (a) πname, address (σ city_name = "kochi"(Hotel)) (b) πcity_name(σ state = "kerala"(city)) (c) πname(Hotel) (d) πname(σ city_name = "kozhikodi"V city_name = "Munnar"(Hotel)) |
|