Question

In: Computer Science

The company publishes one regional magazine each in Upper North island (UN), Lower North island (LN),...

The company publishes one regional magazine each in Upper North island (UN), Lower North island (LN), Upper South island (US), and Lower South island (LS). The company has 300,000 customers (subscribers) distributed throughout the four regions. On the first of each month, an annual subscription INVOICE is printed and sent to each customer whose subscription is due for renewal. The INVOICE entity contains a REGION attribute to indicate the customer’s region of residence (UN, LN, US, LS):

CUSTOMER (CUS_NUM, CUS_NAME, CUS_ADDRESS, CUS_CITY, CUS_REGION, CUS_SUBSDATE)

INVOICE (INV_NUM, INV_REGION, CUS_NUM, INV_DATE, INV_TOTAL)

The company is aware of the problems associated with centralized management and has decided that it is time to decentralize the management of the subscriptions in its four regional subsidiaries. Each subscription site will handle its own customer and invoice data. The management at company headquarters, however, will have access to customer and invoice data to generate annual reports and to issue ad hoc queries, such as:

•           List all current customers by region.

•           List all new customers by region.

•           Report all invoices by customer and by region.

Given these requirements, how must you partition the database? How many fragments will you create? Design the database fragments for the INVOICE table and show two rows of sample data for each fragment.

Solutions

Expert Solution

Fragmentation of Customer table by Region

FRAGMENT NAME LOCATION CONDITION
C1 UN(upper north island) CUS_REGION='UN'
C2 LN(lower north island) CUS_REGION='LN'
C3 US(upper south island) CUS_REGION='US'
C4 LS(lower south island) CUS_REGION='LS'

Fragmentation of Invoice table by Region

FRAGMENT NAME LOCATION CONDITION
I1 UN(upper north island) INV_REGION='UN'
I2 LN(lower north island) INV_REGION='LN'
I3 US(upper south island) INV_REGION='US'
I4 LS(lower south island) INV_REGION='LS'

EXAMPLES:

FRAGMENT: C1 REGION: UN

CUS_NUM CUS_NAME CUS_ADDRESS CUS_CITY CUS_REGION CUS_SUBSDATE
101 JACK 123, xyz street X UN 8-dec-07
193 ALISSA 1, mnp street Y UN 9-sep-07

FRAGMENT : C2 REGION: LN

CUS_NUM CUS_NAME CUS_ADDRESS CUS_CITY CUS_REGION CUS_SUBSDATE
106 JAMES 123, x street A LN 18-dec-07
187 LISA 13, mp street B LN 19-sep-07

FRAGMENT : C3    REGION: US

CUS_NUM CUS_NAME CUS_ADDRESS CUS_CITY CUS_REGION CUS_SUBSDATE
111 KEVIN 123, G street P US 8-oct-07
176 CARA 1, p street Q US 12-sep-08

FRAGMENT : C4 REGION : LS

CUS_NUM CUS_NAME CUS_ADDRESS CUS_CITY CUS_REGION CUS_SUBSDATE
23 JACK 12, baker street R LS 28-aug-08
245 ALISSA 13, l street S LS 9-sep-07

FRAGMENT : I1 REGION : UN

INV_NUM INV_REGION CUS_NUM INV_DATE INV_TOTAL
21222 UN 101 12-nov-07 70
34241 UN 193 1-dec-08 65

FRAGMENT : I2 REGION : LN

INV_NUM INV_REGION CUS_NUM INV_DATE INV_TOTAL
23411 LN 106 11-dec-07 50
37538 LN 187 11-dec-08 73

FRAGMENT : I3 REGION : US

INV_NUM INV_REGION CUS_NUM INV_DATE INV_TOTAL
26565 US 111 12-nov-07 67
23444 US 176 11-oct-08 32

FRAGMENT : I4 REGION : LS

INV_NUM INV_REGION CUS_NUM INV_DATE INV_TOTAL
12575 LS 23 12-oct-08 70
45451 LS 245 21-dec-07 65

Related Solutions

Duchamp plc is a company that publishes regional newspapers. Each newspaper contains news relevant to a...
Duchamp plc is a company that publishes regional newspapers. Each newspaper contains news relevant to a specific town or city. On 1st July 2019 Duchamp plc purchased the ‘Winchester Weekly Bulletin’ title from a competitor. This title was launched in 1934 and is still popular. The title cost Duchamp £350,000. The CEO of Duchamp plc felt it was inconsistent to have one title recognised on the Statement of financial position when other titles that were created ‘in-house’ by Duchamp were...
Each year a certain magazine publishes a list of "Best Places to Live in the United...
Each year a certain magazine publishes a list of "Best Places to Live in the United States." These listings are based on affordability, educational performance, convenience, safety, and livability. Suppose the list below shows the median household income of the magazine's top city in each U.S. state for a certain year. (Round your answers to the nearest cent.) City Median Household Income ($) City Median Household Income ($) Pelham, AL 66,770 Bozeman, MT 49,301 Juneau, AK 84,099 Papillion, NE 79,129...
E11.4 (LO 1) Moreno Company publishes a monthly sports magazine, Fishing Preview. Subscriptions to the magazine...
E11.4 (LO 1) Moreno Company publishes a monthly sports magazine, Fishing Preview. Subscriptions to the magazine cost $20 per year. During November 2020, Moreno sells 15,000 subscriptions beginning with the December issue. Moreno prepares financial statements quarterly and recognizes subscription revenue at the end of the quarter. The company uses the accounts Unearned Subscription Revenue and Subscription Revenue. Instructions a. Prepare the entry in November for the receipt of the subscriptions. b. PreparetheadjustingentryatDecember31,2020,torecordsalesrevenuerecognizedinDecember2020. c. Prepare the adjusting entry at March...
In a porter governor, the upper and lower arms are each 220m long, and aare each...
In a porter governor, the upper and lower arms are each 220m long, and aare each inclined at 30degrees to the vertical when the sleeve is in its lowest position. the points of suspension are each 40 mm from the axis of the spindle. The mass of each of the three rotating balls is 3kg and that of the central load on the sleeve is 30kg. if the movement of the sleeve is 36 mm, find the range of speed...
Compare and contrast the upper and lower respiratory system. List the components of each. Note: Please...
Compare and contrast the upper and lower respiratory system. List the components of each. Note: Please write or type all answers in a way that is understandable and legible. hank you for taking the time to answer my question!
A Parter governor with upper and lower arms (250 mm) equal length, each pivoted at a...
A Parter governor with upper and lower arms (250 mm) equal length, each pivoted at a distance ( 30 mm) from the spindle axis. The ball and dead mass ( 10 & 25 kg) respectively. the friction force (± 10 N). Determine the maximum and minimum speed when the upper arm makes angle equal to (60 deg) with vertical.
Write a function flipSwitches that accepts one argument, a sequence of upper or lower case letters...
Write a function flipSwitches that accepts one argument, a sequence of upper or lower case letters (the sequence can either be a str or a list, if you write your code correctly, it shouldn’t matter). This is a sequence of switches, uppercase means to turn a switch on, and lowercase to turn a switch off.   For example, ‘A’ means to turn the switch ‘A’ on, and ‘a’ means to turn the switch ‘A’ off.   (Turning an on switch on again,...
Upper Division of Lower Company acquired an asset with a cost of $560,000 and a four-year...
Upper Division of Lower Company acquired an asset with a cost of $560,000 and a four-year life. The cash flows from the asset, considering the effects of inflation, were scheduled as follows. Year Cash Flow 1 $ 220,000 2 250,000 3 280,000 4 330,000 The cost of the asset is expected to increase at a rate of 20 percent per year, compounded each year. Performance measures are based on beginning-of-year gross book values for the investment base. Ignore taxes. Required:...
Upper Division of Lower Company acquired an asset with a cost of $550,000 and a four-year...
Upper Division of Lower Company acquired an asset with a cost of $550,000 and a four-year life. The cash flows from the asset, considering the effects of inflation, were scheduled as follows: The cost of the asset is expected to increase at a rate of 10 percent per year, compounded each year. Performance measures are based on beginning-of-year gross book values for the investment base. Ignore taxes. Year Cash Flow 1 $200,000 2 $245,000 3 $280,000 4 $305,000 Required: a....
Upper Division of Lower Company acquired an asset with a cost of $580,000 and a four-year...
Upper Division of Lower Company acquired an asset with a cost of $580,000 and a four-year life. The cash flows from the asset, considering the effects of inflation, were scheduled as follows: Year Cash Flow 1 $ 185,000 2 265,000 3 285,000 4 305,000 The cost of the asset is expected to increase at a rate of 20 percent per year, compounded each year. Performance measures are based on beginning-of-year gross book values for the investment base. Ignore taxes. Required:...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT