Problem 2: A database for maintaining information about the cities in the United States has the following relation schema Info(city_name, state, governor, mayor) The city_name attribute is the name of a city, state is the abbreviation for state the city is in, governor is the name of the governor of the state the city is in, and mayor is the name of the mayor of the city. For example, the tuple ('New York', 'NY', 'Andrew Cuomo', 'Bill de Blasio') gives information about New York City. Two cities may have the same name (for example there are at least two cities named Portland in the US), but two cities in the same state cannot have the same name. Two states cannot have the same abbreviation. Each city has exactly one mayo and each state has exactly one governor. 1. Which of the following are super keys? Which are candidate keys? (There may be more than one): {city_name} {state} {city_name, state} {city_name, state, mayor} 2. If there are 1000 cities from NY state in a relation of this schema, how many rows will need to be updated when NY gets a new governor? 3. Give an example of a non-trivial functional dependency in this schema for which the left-hand side is not a superkey. 4. Decompose the schema into two schemas that are in Boyce-Codd Normal Form (BCNF). 5. If there are 1000 cities from NY state in relations of the BCNF schemas, how many rows will need to be updated when NY gets a new governor?

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
Related questions
Question
Problem 2:
A database for maintaining information about the cities in the United States has the following
relation schema
Info(city_name, state, governor, mayor)
The city_name attribute is the name of a city, state is the abbreviation for state the city is in,
governor is the name of the governor of the state the city is in, and mayor is the name of the mayor
of the city. For example, the tuple ('New York', 'NY', 'Andrew Cuomo', 'Bill de Blasio') gives
information about New York City. Two cities may have the same name (for example there are at
least two cities named Portland in the US), but two cities in the same state cannot have the same
name. Two states cannot have the same abbreviation. Each city has exactly one mayo and each
state has exactly one governor.
1. Which of the following are super keys? Which are candidate keys? (There may be more than one):
{city_name}
{state}
{city_name, state}
{city_name, state, mayor}
2. If there are 1000 cities from NY state in a relation of this schema, how many rows will need to be
updated when NY gets a new governor?
3. Give an example of a non-trivial functional dependency in this schema for which the left-hand
side is not a superkey.
4. Decompose the schema into two schemas that are in Boyce-Codd Normal Form (BCNF).
5. If there are 1000 cities from NY state in relations of the BCNF schemas, how many rows will need
to be updated when NY gets a new governor?
Transcribed Image Text:Problem 2: A database for maintaining information about the cities in the United States has the following relation schema Info(city_name, state, governor, mayor) The city_name attribute is the name of a city, state is the abbreviation for state the city is in, governor is the name of the governor of the state the city is in, and mayor is the name of the mayor of the city. For example, the tuple ('New York', 'NY', 'Andrew Cuomo', 'Bill de Blasio') gives information about New York City. Two cities may have the same name (for example there are at least two cities named Portland in the US), but two cities in the same state cannot have the same name. Two states cannot have the same abbreviation. Each city has exactly one mayo and each state has exactly one governor. 1. Which of the following are super keys? Which are candidate keys? (There may be more than one): {city_name} {state} {city_name, state} {city_name, state, mayor} 2. If there are 1000 cities from NY state in a relation of this schema, how many rows will need to be updated when NY gets a new governor? 3. Give an example of a non-trivial functional dependency in this schema for which the left-hand side is not a superkey. 4. Decompose the schema into two schemas that are in Boyce-Codd Normal Form (BCNF). 5. If there are 1000 cities from NY state in relations of the BCNF schemas, how many rows will need to be updated when NY gets a new governor?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 7 steps

Blurred answer
Knowledge Booster
Transaction Processing
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning