Exercise 1 Discuss the main approaches for managing the design of a database system that has...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Exercise 1 Discuss the main approaches for managing the design of a database system that has multiple user views. Exercise 2 Compare and contrast the three phases of database design. Exercise 3 Create an ER diagram (entities, relationships, multiplicities) for each of the following descriptions: (a) Each company operates four departments, and each department belongs to one company. (b) Each department in part (a) employs one or more employees, and each employee works for one department. (c) Each of the employees in part (b) may or may not have one or more dependants, and each dependant belongs to one employee. (d) Each employee in part (c) may or may not have an employment history. (e) Represent all the ER diagrams described in (a), (b), (c), and (d) as a single ER diagram. Perilous Printing Database Description Perilous Printing is a small printing company which does work for book publishers (tracked in the publishers table). Perilous Printing jobs consist of printing books or parts of books. These jobs are recorded in the bookjobs table, which contains a foreign key to a customer (cust_id). A printing job requires the use of materials, such as paper and ink, which are assigned to a job via purchase orders (POS) kept in the pos table (with the foreign key job_id back to the bookjobs table). Each printing job may have several POs assigned to it. Likewise, one PO may contain many PO items which are recorded in a separate po_items table. The one-to-many relationship between pos and po_items is implemented by the composite foreign key (job_id, po_id) in the po_items table. The materials which appear in po_items (via foreign key item_id) are tracked in the items table, which records the material description, the quantity on-hand in the warehouse, and the price. The many-to-many (*:*) relationship between pos and items is decomposed into two one-to-many (1:*) relationships by means of the intersection relation po_items. Perilous Printing Relation Structures publishers (cust id, name, city, phone, creditcode) bookjobs (job id, cust_id, job_date, descr, jobtype) pos (job id, po id, po_date, vendor_id) items (item id, descr, on_hand, price) po_items (job id, po id, item id, quantity) Exercise 4 Reverse engineer an ER model from the above description above. Include entities, attributes, relationships, and multiplicities. Note that: foreign keys should NOT be represented in the entities as attributes, but are information about the required relationships the relation po_items is actually the realisation of a many-to-many relationship between pos and items and has the attribute quantity DROP TABLE publishers; DROP TABLE po_items; DROP TABLE bookjobs; DROP TABLE items; DROP TABLE pos; CREATE TABLE pos ( job_id po_id po_date vendor_id name city phone creditcode ); CREATE TABLE cust_id CHAR(3) NOT NULL, CHAR(3) NOT NULL, DATE, CHAR (3) on_hand price ); publishers ( CHAR (3) CHAR(10), CHAR(10), CHAR (8), CHAR (1) ); CREATE TABLE bookjobs ( job_id cust_id job_date descr jobtype ); CHAR(3) CHAR(3), DATE, CHAR(10), CHAR (1) CREATE TABLE po_items ( job_id po_id item_id quantity ); CHAR (3) NOT NULL, CREATE TABLE items ( item_id descr CHAR(3) NOT NULL, SMALLINT NOT NULL, CHAR (3) NOT NULL, NOT NULL, CHAR(10), CHAR (3) NOT NULL, SMALLINT, DECIMAL (5,2) insert into publishers values ('A01', 'ART BOOKS', 'SYDNEY', '555-1234', 'N'); insert into publishers values ('B02', 'BIBLECO', NULL, '555-2468', 'C'); CABLE-EX', 'BRISBANE', '555-3690', 'N'); 'DIABLO CO', 'MELBOURNE', NULL, 'D'); insert into publishers values ('C03', insert into publishers values ('D04', insert into publishers values ('E05', 'EASYPRINT' 'PERTH' 555-5050', 'C'); insert into publishers values ('F06', 'FOX-PAW', 'HOBART', '555-6789', 'C' ); insert into publishers values ('G07', 'GOLD PRESS', 'ADELAIDE', '555-7777', 'N'); insert into publishers values ('H08', 'HELP BOOKS', 'DARWIN', NULL, 'C'); insert into bookjobs values ('001' 'E05' insert into bookjobs values ('002', 'E05' insert into bookjobs values ('003', 'E05' insert into bookjobs values ('004', 'A01' insert into bookjobs values ('005' 'A01 insert into bookjobs values ('006', 'D04', I I I 'ABC'); 1 '1990-05-20 '1990-03-15' 'XYZ'); '1990-01-05' '1990-01-01', '1990-01-15', 'SOS '); insert into pos values ('002', AAA insert into pos values ('002', 'BBB' insert into pos values ('004', CCC insert into pos values ('004' 'DDD insert into pos values ('005' 'EEE insert into pos values ('005', FFF insert into pos values ('006', 'GGG' '1988-07-15', 'XYZ'); 'ABC'); 'SOS'); '1989-12-01', 'ABC'); 1 '1990-04-04' 'TEXT BOOKS 'R'); '1990-03-03' 'BUS REPORT', 'N'); 1989-12-25', COMMERCIAL', 'N'); 1990-01-01 'PAMPHLETS', 'R'); '1989-11-23', 'GOVT', 'N'); '1988-07-04', 'CAMPAIGN', 'H'); I I insert into items values ('P9', '9KG PAPER', 300, 25.25); insert into items values ('P12', '12KG PAPER', 700, 49.99); insert into items values ('P18', '18KG PAPER', 100, 100.00); insert into items values ('IRN', 'INK-RESIN', 3, 500.00); insert into items values ('IWS', INK-WRSOL', 5, 350.00); insert into items values ('CBD', 'CARDBOARD', 47, 15.00); 'CCC 'IRN' 4); 'P18', 100); 'P9', 50); 'IWS insert into po_items values ('004', CCC', 'P9', 150); insert into po_items values ('004', insert into po_items values ('004', 'DDD' insert into po_items values ('002', 'AAA' insert into po_items values (002' insert into po_items values ('002' insert into po_items values ('002', 'BBB' insert into po_items values ('006', 'GGG', 'AAA 2); 'AAA' 'CBD' 17); 'CBD', 17); 'IRN', 2); Exercise 1 Discuss the main approaches for managing the design of a database system that has multiple user views. Exercise 2 Compare and contrast the three phases of database design. Exercise 3 Create an ER diagram (entities, relationships, multiplicities) for each of the following descriptions: (a) Each company operates four departments, and each department belongs to one company. (b) Each department in part (a) employs one or more employees, and each employee works for one department. (c) Each of the employees in part (b) may or may not have one or more dependants, and each dependant belongs to one employee. (d) Each employee in part (c) may or may not have an employment history. (e) Represent all the ER diagrams described in (a), (b), (c), and (d) as a single ER diagram. Perilous Printing Database Description Perilous Printing is a small printing company which does work for book publishers (tracked in the publishers table). Perilous Printing jobs consist of printing books or parts of books. These jobs are recorded in the bookjobs table, which contains a foreign key to a customer (cust_id). A printing job requires the use of materials, such as paper and ink, which are assigned to a job via purchase orders (POS) kept in the pos table (with the foreign key job_id back to the bookjobs table). Each printing job may have several POs assigned to it. Likewise, one PO may contain many PO items which are recorded in a separate po_items table. The one-to-many relationship between pos and po_items is implemented by the composite foreign key (job_id, po_id) in the po_items table. The materials which appear in po_items (via foreign key item_id) are tracked in the items table, which records the material description, the quantity on-hand in the warehouse, and the price. The many-to-many (*:*) relationship between pos and items is decomposed into two one-to-many (1:*) relationships by means of the intersection relation po_items. Perilous Printing Relation Structures publishers (cust id, name, city, phone, creditcode) bookjobs (job id, cust_id, job_date, descr, jobtype) pos (job id, po id, po_date, vendor_id) items (item id, descr, on_hand, price) po_items (job id, po id, item id, quantity) Exercise 4 Reverse engineer an ER model from the above description above. Include entities, attributes, relationships, and multiplicities. Note that: foreign keys should NOT be represented in the entities as attributes, but are information about the required relationships the relation po_items is actually the realisation of a many-to-many relationship between pos and items and has the attribute quantity DROP TABLE publishers; DROP TABLE po_items; DROP TABLE bookjobs; DROP TABLE items; DROP TABLE pos; CREATE TABLE pos ( job_id po_id po_date vendor_id name city phone creditcode ); CREATE TABLE cust_id CHAR(3) NOT NULL, CHAR(3) NOT NULL, DATE, CHAR (3) on_hand price ); publishers ( CHAR (3) CHAR(10), CHAR(10), CHAR (8), CHAR (1) ); CREATE TABLE bookjobs ( job_id cust_id job_date descr jobtype ); CHAR(3) CHAR(3), DATE, CHAR(10), CHAR (1) CREATE TABLE po_items ( job_id po_id item_id quantity ); CHAR (3) NOT NULL, CREATE TABLE items ( item_id descr CHAR(3) NOT NULL, SMALLINT NOT NULL, CHAR (3) NOT NULL, NOT NULL, CHAR(10), CHAR (3) NOT NULL, SMALLINT, DECIMAL (5,2) insert into publishers values ('A01', 'ART BOOKS', 'SYDNEY', '555-1234', 'N'); insert into publishers values ('B02', 'BIBLECO', NULL, '555-2468', 'C'); CABLE-EX', 'BRISBANE', '555-3690', 'N'); 'DIABLO CO', 'MELBOURNE', NULL, 'D'); insert into publishers values ('C03', insert into publishers values ('D04', insert into publishers values ('E05', 'EASYPRINT' 'PERTH' 555-5050', 'C'); insert into publishers values ('F06', 'FOX-PAW', 'HOBART', '555-6789', 'C' ); insert into publishers values ('G07', 'GOLD PRESS', 'ADELAIDE', '555-7777', 'N'); insert into publishers values ('H08', 'HELP BOOKS', 'DARWIN', NULL, 'C'); insert into bookjobs values ('001' 'E05' insert into bookjobs values ('002', 'E05' insert into bookjobs values ('003', 'E05' insert into bookjobs values ('004', 'A01' insert into bookjobs values ('005' 'A01 insert into bookjobs values ('006', 'D04', I I I 'ABC'); 1 '1990-05-20 '1990-03-15' 'XYZ'); '1990-01-05' '1990-01-01', '1990-01-15', 'SOS '); insert into pos values ('002', AAA insert into pos values ('002', 'BBB' insert into pos values ('004', CCC insert into pos values ('004' 'DDD insert into pos values ('005' 'EEE insert into pos values ('005', FFF insert into pos values ('006', 'GGG' '1988-07-15', 'XYZ'); 'ABC'); 'SOS'); '1989-12-01', 'ABC'); 1 '1990-04-04' 'TEXT BOOKS 'R'); '1990-03-03' 'BUS REPORT', 'N'); 1989-12-25', COMMERCIAL', 'N'); 1990-01-01 'PAMPHLETS', 'R'); '1989-11-23', 'GOVT', 'N'); '1988-07-04', 'CAMPAIGN', 'H'); I I insert into items values ('P9', '9KG PAPER', 300, 25.25); insert into items values ('P12', '12KG PAPER', 700, 49.99); insert into items values ('P18', '18KG PAPER', 100, 100.00); insert into items values ('IRN', 'INK-RESIN', 3, 500.00); insert into items values ('IWS', INK-WRSOL', 5, 350.00); insert into items values ('CBD', 'CARDBOARD', 47, 15.00); 'CCC 'IRN' 4); 'P18', 100); 'P9', 50); 'IWS insert into po_items values ('004', CCC', 'P9', 150); insert into po_items values ('004', insert into po_items values ('004', 'DDD' insert into po_items values ('002', 'AAA' insert into po_items values (002' insert into po_items values ('002' insert into po_items values ('002', 'BBB' insert into po_items values ('006', 'GGG', 'AAA 2); 'AAA' 'CBD' 17); 'CBD', 17); 'IRN', 2);
Expert Answer:
Related Book For
Posted Date:
Students also viewed these databases questions
-
Create an ER diagram for each of the following descriptions: (a) Each company operates four departments, and each department belongs to one company. (b) Each department in part (a) employs one or...
-
Portray in words what transforms you would have to make to your execution to some degree (a) to accomplish this and remark on the benefits and detriments of this thought.You are approached to compose...
-
1 points Question 11 Your 91-year-old great-aunt has terminal cancer. You and shehave had many conversations regarding what she would want done ifshe were incapacitated and could not make choices...
-
In the movie, Willy Wonka and the Chocolate Factory, Augustus Gloop leans over the chocolate river to get a drink and falls in. He is sucked through the pipe leading to the fudge room where he is...
-
(a) What is a lease agreement? (b) What are the two most common types of leases? (c) Distinguish between the two types of leases.
-
It is August 6. You are the president of a small electronics company. The company has some cash reserves that will not be needed for about 3 months, but interest rates are very low. Your chief...
-
Identifying suitable market segments and selecting targets are critical to the success of any marketing plan. As Jane Melodys assistant, youre responsible for market segmentation and targeting. Look...
-
(g) Explain why it is necessary to exit from an investment and list the pros and cons to both a venture capitalist investor and the company's management team of exiting via a trade sale and via a...
-
Which series has the highest beta. BraveNewCoin Liquid Index for Bitcoin 1D BNC Trading Brave Ne Yellow Green Blue Orange
-
Question 9 1 pts Johnson Corporation has just paid a dividend of $3.68. The company has forecasted a growth rate of 6.5 percent for the next several years. If the appropriate discount rate is 15.2...
-
A soccer ball player bounces the ball off her head, changing the velocity of the ball. She changes the x-component of the velocity of the ball from Vix = 8.4 m/s to vfx 3.8 m/s and the y-component...
-
Discuss? Urbanization has a significant impact on the economy, driving growth and providing numerous economic opportunities. As cities expand, they become hubs of commerce, industry, and innovation,...
-
Two ice skaters stand facing each other at rest on a frozen pond. They push off against one another and the 48 kg skater acquires a speed of 0.74 m/s. If the other skater acquires a speed of 0.83...
-
A suitcase is pulled with a force of 150 N at an angle of 30 degrees to the horizontal to displace it 65 m. How do I find the work done?
-
Identifying properties of relations Write a program that will determine if a relation satisfies the following properties: Reflexive Antireflexive Symmetric Antisymmetric Input Your program should...
-
An air 150 Watt cooler is taking 200 volts. Calculate its load in amps, power factor, and capacitor value to increase its power factor to 0.95.
-
Write the given system without the use of matrices. D) - ()- d (x sin t + 8 (2+ 1)
-
Find the domain of the vector-valued function. r(t) = sin ti + 4 cos tj + tk
-
Explain whether the Quotient Rule should be used to find the partial derivative. Do not differentiate. x y - 3
-
In Exercises use the properties of summation and Theorem 4.2 to evaluate the sum. Use the summation capabilities of a graphing utility to verify your result. Data from in Theorem 4.2 10 (2 1) [ =!
-
In the FRED database, find a variable that is available in both a seasonally adjusted form and a not seasonally adjusted form. Plot both over time and describe how large the seasonal variation in the...
-
How does each of the following variables behave over the business cycle? Develop graphs to show your results and give economic explanations. a. Real imports b. Federal government receipts c. Housing...
-
An economic variable is persistent if declines in the variable tend to be followed by more declines, and increases by more increases. This question asks you to study the persistence of the civilian...
Study smarter with the SolutionInn App