A database for maintaining information about cities in the United States has the following relation schema:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A database for maintaining information about 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 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 a. 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 superkey. A database for maintaining information about 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 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 a. 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 superkey.
Expert Answer:
Related Book For
Fundamentals of Database Systems
ISBN: 978-0136086208
6th edition
Authors: Ramez Elmasri, Shamkant Navathe
Posted Date:
Students also viewed these databases questions
-
The model E(y) = E(y) = β0 + β1x1 + E(y) + β3x3, where was used to relate E(y) to a single qualitative variable with four levels. This model was fitted to n = 30...
-
Compare and contrast term insurance versus whole-life insurance. At what age do you think people should take out life insurance? Explain how to read a stock quotation. What are some of the red flags...
-
Two reservoirs A and B are connected with a long pipe that has characteristics such that the head loss through the pipe is expressible as hr. = 220, where he is in feet and Q is the flow rate in...
-
The Transco Company is considering making and supplying computer-controlled traffic- signal switching boxes to be used throughout Arizona. Transco has estimated the market for its boxes by examining...
-
Constructive eviction is a legal doctrine by which a landlord who substantially interferes with a tenant's use and enjoyment of the premises will be considered to have evicted the tenant. Such a...
-
Multiple Choice Questions 1. Plant assets are: A) Current assets. B) Used in operations. C) Natural resources. D) Long-term investments. E) Intangible. 2. The relevant factor(s) in computing...
-
An electronic instrument, of mass \(20 \mathrm{~kg}\), is to be isolated to achieve a natural frequency of \(15 \mathrm{rad} / \mathrm{s}\) and a damping ratio of 0.95. The available dashpots can...
-
Barbara Flynn is in charge of maintaining hospital supplies at General Hospital. During the past year, the mean lead time demand for bandage BX-5 was 60 (and was normally distributed). Furthermore,...
-
On January 1, Sheffield Inc. issued $5007000, 9% bonds for $4797000. The market rate of interest for these bonds is 10%. Interest is payable annually on December 31. Sheffield uses the...
-
The marbled murrelet is a seabird on the list of endangered species. Pacific Lumber Co. received permission to harvest trees from land on which the murrelet nested, on the condition that it would...
-
Here is a recurrence equation representing a divide & conquer recursive operation: T(n) = 0(1) =T(n/2) + T(n/4) + e(n) if n c otherwise 1. How many subproblems does this recursive operation have? 2....
-
Consider the sequence \(0.4,0.44,0.444,0.4444, \cdots\). What do you think is the appropriate limit of this sequence?
-
Copy the figures in Problems 13-20 on your paper. Draw what you think is an appropriate tangent line for each curve at the point \(P\) by using the secant method. O P
-
Use the definition of derivative to find the derivatives in Problems 8-12. \(f(x)=44 e^{0.5 x}\)
-
Consider the sequence \(0.36,0.3636,0.363636, \cdots\). What do you think is the appropriate limit of this sequence?
-
Apportion the scholarships using Hamilton's method. Each year, 100 scholarships are awarded to the students. Use this information in Problems 33-36. A university has two colleges, Letters and...
-
Differentiate the following with respect to the variable: (a) y=4sin 3t ch 4t (b) y In (sh 3.theta)- 4ch 3.theta.
-
Huntingdon Capital Corp. is a competitor of Plazacorp and First Capital Realty. Huntingdon reported the following selected information (in millions):...
-
Load the records of Exercise 17.31 into expandable hash files based on linear hashing. Start with a single disk block, using the hash function h = K mod 2, and show how the file grows and how the...
-
Identify all the important concepts represented in the library database case study described here. In particular, identify the abstraction of classification (entity types and relationship types),...
-
Figure 23.6 shows the log corresponding to a particular schedule at the point of a system crash for the four transactions T1, T2, T3, and T4 of Figure 19.4. Suppose that we use the immediate update...
-
As a check on the quality of eye glasses purchased over the internet, glasses were individually ordered from several different online vendors. Among the 92 lenses with antireflection coating, 61...
-
With reference to Exercise 10.55, find a large sample 95% confidence interval for the true difference of probabilities. Data From Exercise 10.55 10.55 As a check on the quality of eye glasses...
-
Two bonding agents, \(A\) and \(B\), are available for making a laminated beam. Of 50 beams made with Agent \(A, 11\) failed a stress test, whereas 19 of the 50 beams made with Agent \(B\) failed. At...
Study smarter with the SolutionInn App