Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi!! I need help with these 4 database question please.. Please follow the instructions strcitly for your answers... Thanks Problem 1 A database for maintaining
Hi!! I need help with these 4 database question please.. Please follow the instructions strcitly for your answers... Thanks
Problem 1 A database for maintaining information about cities in the United States has the following relation schema: Infolcity 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','Bil diBlasio') 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 mayor and each state has exactly one governor 1. State whether each of these is A. a superkey, B. a superkey that is also a candidate key, or C. not a superkey . city-name, state) . [city-name, state, mayor . {city.name) . {state, governor) 2. If there are 500 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. We will say that a functional dependency a - is trivial if is a subset of . Give an example of a trivial functional dependency in this schema. 4. Give an example of a non-trivial functional dependency in this schema for which the left-hand side is a superkeyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started