Imagine that you need to design a database for an on-line wine shop. The shop sells...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Imagine that you need to design a database for an on-line wine shop. The shop sells bottles of wine. Each bottle has a price and a volume (for example, 0.75 1 or 0.375 1). Each wine has a name, type (red, white or rose), year of production, grape variety, and a wine-maker. Each wine-maker comes from a particular region and country (for example, Bordeaux, France). The same wine-maker can make several different kinds of wine, and there can be several wine-makers in the same region. The same wine name can be used by several wine-makers, but the (wine name, wine-maker) combination is unique. You can also assume that wine-maker's name is unique. (a) Draw an entity-relationship diagram for the wine-shop database. (10) (b) Describe the schemas for the wine-shop database (names of tables, column names, types of 1 values for each attribute). (5) (c) What are the candidate keys in the tables for the wine shop? (5) (d) What are the foreign keys in the tables for the wine shop? (5) Imagine that you need to design a database for an on-line wine shop. The shop sells bottles of wine. Each bottle has a price and a volume (for example, 0.75 1 or 0.375 1). Each wine has a name, type (red, white or rose), year of production, grape variety, and a wine-maker. Each wine-maker comes from a particular region and country (for example, Bordeaux, France). The same wine-maker can make several different kinds of wine, and there can be several wine-makers in the same region. The same wine name can be used by several wine-makers, but the (wine name, wine-maker) combination is unique. You can also assume that wine-maker's name is unique. (a) Draw an entity-relationship diagram for the wine-shop database. (10) (b) Describe the schemas for the wine-shop database (names of tables, column names, types of 1 values for each attribute). (5) (c) What are the candidate keys in the tables for the wine shop? (5) (d) What are the foreign keys in the tables for the wine shop? (5)
Expert Answer:
Answer rating: 100% (QA)
a EntityRelationship Diagram Entities Wine WineMaker Region Bottle Relationships Produces WineMa... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
Draw an ERD for each of the following situations. (If you believe that you need to make additional assumptions, clearly state them for each situation.) Draw the same situation using the tool you have...
-
1. Consider the futures contract to buy/sell December gold for $500 per ounce on the New York Commodity Exchange (CMX). The contract size is 100 ounces. The initial margin is $3,000, and the...
-
Write a SET client SpellChecker that takes as a commandline argument the name of a file containing a dictionary of words, and then reads strings from standard input and prints any string that is not...
-
Mirrlees Corp. has 10,000 7% bonds convertible into 30 shares per $1000 bond. Mirrlees has 1,000,000 outstanding shares. Mirrlees has a tax rate of 40%. The average bond yield at time of issue was...
-
For the following exercises, convert the given polar equation to a Cartesian equation. Write in the standard form of a conic if possible, and identify the conic section represented. r = 4cos
-
Assume that Merrylands Markets had an inventory balance of \($32\) 570 at the close of the last accounting period. The following sales and purchase transactions are for the current period. Purchased...
-
Don Garlits is a landscaper. He is considering the purchase of a new commercial lawn mower, either, the Atlas or the Zippy. The minimum attractive rate of return is 8%, and the table provides all the...
-
Journalize the employer's payroll tax expense for February 28. Notice that this journal entry is similar to the one on January 31. Use the February FICA amounts. Notice that Amy Hamilton reaches the...
-
A business manufactures refrigerators for domestic use. There are three models: Lo, Mid and Hi. The models, their quality and their price are aimed at different markets. Product costs are computed...
-
you have accumulated $1,000,000, you plan to deplete the $1,000,000 by taking out or withdrawing an equal amount in the next twenty-five years. If the interest rate stays at 8%, what is your annual...
-
Assume that you had total assets = $ 5 0 0 , total liabilites equal to $ 3 0 0 , and stockholders' equity to $ 2 0 0 . If total assets increased by 1 0 0 % and stockholders equity increased by 5 0 %...
-
Marie is thinking of two numbers. When she adds, she gets 40. When she multiplies them, she gets 351. She Helps her younger sister, Enya, calculate the numbers.
-
For the tax year 2 0 2 3 / 2 4 Keith has net income of 1 1 2 6 7 5 and paid 8 1 5 to charity under the gift aid scheme. What will be his personal allowance for the year? Enter a whole number, without...
-
Write a detail note on How is NEPA different than other environmental laws ?
-
A beverage producer produces two products, an orange beverage containing 10% orange juice and an orange delight containing 50% orange juice. How many gallons of orange delight should be mixed with...
-
b) If the coefficient of X, is changed from 4 to 9, what will be changed in the optimal tables? (explain your solution).
-
Show that, given a maximum flow in a network with m edges, a minimum cut of N can be computed in O(m) time.
-
From a behavioral point of view, what potential problems can occur when implementing a target costing system?
-
Chow Company is an insurance company in Hong Kong. Chow hires 55 people to process insurance claims. The volume of claims is extremely high, and all claims examiners are kept extremely busy. The...
-
Characteristics of a MACS: rewards Can goal congruence be increased if rewards are tied to performance? Explain.
-
Discuss how yields anticipate future economic activity.
-
Select the circumstance in which the impact on government bond yields of a new source of revenue (such as a natural resource discovery) would be largest. Explain your choice. a. Before the discovery,...
-
Suppose that the interest rate on one-year bonds is 4 percent and is expected to be 5 percent in one year and 6 percent in two years. Using the expectations hypothesis, compute the yields in two- and...
Study smarter with the SolutionInn App