Question

In: Computer Science

You have the following information about opera lovers, their operas, and the attendance experiences: •       Susie attended...

You have the following information about opera lovers, their operas, and the attendance experiences:

•       Susie attended Madame Butterfly and spent $25 on the ticket for the 1/11 performance, and then went to see La Traviata on 10/3 for $100.  She also went to see Carmen for $30 on 10/10.

•       Lee attended Madame Butterfly and spent $25 on the ticket for the 10/21 performance.

•       Jackson attended Carmen and spent $30 on the ticket for the 5/12 performance.  He also went to see La Nozze di Figaro on 1/20, and paid $100 for the ticket.

•       Bobby attended Carmen and spent $30 on the ticket for the 1/26 performance, and then went to see La Boheme on 8/14 for $50.

•       Margaret attended La Nozze di Figaro and spent $100 on the ticket for the 2/22 performance, and then went (with Jackson) to see Carmen on 5/12 for $30.

•       Ulysses attended Rigoletto on 10/21 and spent $35 on the ticket.

Construct a normalized database using this information.

You can assume all tickets for the same opera cost the same.  For example, all tickets for Madame Butterfly are $25.

Solutions

Expert Solution

The information in tabular form is (attributes are named as Person, Opera, Date, Ticket) :

Person Opera Date Ticket
Susie Madame Butterfly 1/11 25
La Traviata 10/3 100
Carmen 10/10 30
Lee Madame Butterfly 10/21 25
Jackson Carmen 5/12 30
La Nozze di Figaro 1/20 100
Bobby Carmen 1/26 30
La Boheme 8/14 50
Margaret La Nozze di Figaro 2/22 100
Margaret, Jackson Carmen 5/12 30
Ulysses Rigoletto 10/21 35

To convert it into 1NF, make all instances atomic (only one value per cell and no merged cells allowed). The resulting database is:

Person Opera Date Ticket
Susie Madame Butterfly 1/11 25
Susie La Traviata 10/3 100
Susie Carmen 10/10 30
Lee Madame Butterfly 10/21 25
Jackson Carmen 5/12 30
Jackson La Nozze di Figaro 1/20 100
Bobby Carmen 1/26 30
Bobby La Boheme 8/14 50
Margaret La Nozze di Figaro 2/22 100
Margaret Carmen 5/12 30
Jackson Carmen 5/12 30
Ulysses Rigoletto 10/21 35

To convert in 2NF form, remove all dependencies. It can be seen that 'Ticket' is dependent on 'Opera'. The result is two tables:

Person Opera Date
Susie Madame Butterfly 1/11
Susie La Traviata 10/3
Susie Carmen 10/10
Lee Madame Butterfly 10/21
Jackson Carmen 5/12
Jackson La Nozze di Figaro 1/20
Bobby Carmen 1/26
Bobby La Boheme 8/14
Margaret La Nozze di Figaro 2/22
Margaret Carmen 5/12
Jackson Carmen 5/12
Ulysses Rigoletto 10/21
Opera Ticket
Madame Butterfly 25
La Traviata 100
Carmen 30
La Nozze di Figaro 100
La Boheme 50
Rigoletto 35

Since there are no transitive functional dependencies, this is also 3NF form (normalized form).


Related Solutions

There is no information at all about the possible proportion of cat lovers in a large...
There is no information at all about the possible proportion of cat lovers in a large population. There's also no time to run a trial poll. A researcher wants to build a 95% confidence interval for the population proportion with the margin of error 3%. The number of the valid answers that the researcher must obtain is
Write an essay about a Cultural event that you have not attended before. Examine this cultural...
Write an essay about a Cultural event that you have not attended before. Examine this cultural event in light of the Seven Deadly Sins / Seven Heavenly Virtues. The essay must have an Introduction, Body, and Conclusion.
2. You are an executive for a manufacturing company. You have just attended a meeting in...
2. You are an executive for a manufacturing company. You have just attended a meeting in which the CEO has approved a new production method that may leak poison into a river and endanger the salmon spawn. You have always been concerned about the environment and you are very much against endangering the salmon spawn. You have to decide whether you are going to oppose this decision or remain silent. List the three most important considerations that are affecting your...
the students answered a survey and the following information was obtained. •70% of students regularly attended...
the students answered a survey and the following information was obtained. •70% of students regularly attended the classes. •85% of students who attended the classes passed .•40% of students who didn’t attend the classes failed. Alice, a random students from that class, has passed this course. What is the probability that she has attended the classes?
You have the following information about the activities of Martin Inc. for 2014:          Sales...
You have the following information about the activities of Martin Inc. for 2014:          Sales $ 1,620,000   Factory maintenance 67,500   Indirect labour 33,500   Direct material purchases 210,000   Factory utilities 50,000   Direct materials used in production 201,000   General and administrative expenses 102,400   Beginning work-in-process inventory 28,400   Beginning finished goods inventory 63,700   Ending work-in-process inventory 32,900   Beginning direct materials inventory 17,500   Selling expenses 98,200   Direct labour 287,000   Factory insurance 46,500   Indirect materials 40,600   Depreciation,factory 60,000   Cost of goods sold 715,000    ...
You have been given the following information about a motel for the coming year:                             &
You have been given the following information about a motel for the coming year:                                                   (A)            Occupancy Forecast         75% (B)            Rooms department variable cost per occupied room is estimated to be     $7.75                                        (C)            Owners' investment          $800,000 (D)            Desired after tax yield on owners' investment        15% (E)             Current income tax rate                  30% (F)             The motels fixed costs for the coming year were anticipated to be                 825,000                                   (G)            The motel has this many rooms available to rent     100...
a) You are considering investing in bonds and have collected the following information about the prices...
a) You are considering investing in bonds and have collected the following information about the prices of a 1-year zero-coupon bond and a 2-year coupon bond. - The 1-year discount bond pays $1,000 in one year and sells for a current price of $950. - The 2-year coupon bond has a face value of $1,000 and an annual coupon of $60. The bond currently sells for a price of $1,050. i) What are the implied yields to maturity on one-...
Address the following in your response: What experiences have you had as a customer in the...
Address the following in your response: What experiences have you had as a customer in the twenty-first century. What was positive or negative about the experience? Were your needs as a customer met? Why or why not? Describe an experience with each of these: Call center Customer service over the internet (chat) Social media
You have been given the following information about the production of Usher Co. and are asked...
You have been given the following information about the production of Usher Co. and are asked to provide the plant manager with information for a meeting with the vice president of operations. Standard Cost Card Direct materials (5 pounds at $4 per pound) $20.00 Direct Labor (0.8 hours at $10) 8.00 Variable Overhead (0.8 hours at $3 per hour) 2.40 Fixed Overhead (0.8 hours at $7 per hour) 5.60 $36.00 The following is a variance report for the most recent...
you are the manager of a coffee shop and your employees have had poor attendance. You...
you are the manager of a coffee shop and your employees have had poor attendance. You want to understand why so many employees are missing work and find out how to improve employee engagement. To do this you plan to conduct an employee survey. Compose a 10-question survey that you will distribute to your employees. Your survey should include instructions on how to complete the survey, and the survey’s purpose.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT