12.07.2015 Views

Web-DSS-Chapter-03

Web-DSS-Chapter-03

Web-DSS-Chapter-03

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SECTION 3.22 ■ Exercises 737. “Electronic commerce” is one of the most commonterms in the business world. It is the buyingand selling of goods and services on the Internet.One of the most popular products in e-commerce,as it is more commonly known, is the compactdisc. This exercise describes the database of a CDwarehouse.The company’s customers and employeesaccess the database. Assume that customers haveaccess to a company’s <strong>Web</strong> site and that they areable to open an account by providing their socialsecurity number, name, address, and music preferences.For each employee, the following informationis recorded: an employee identificationnumber, a name, an address, a birth date, and thetitle of the position within the company.The products for the CD warehouse are thealbums. The database records the following informationabout each album: an album identificationnumber, the name, the group name, themusical category, the name of the vocalist, thenames of the other band members, and the numberof CDs in stock. The database also keeps thefollowing information about suppliers: a supplieridentification number, the address, the name ofthe company, and the name of the contactperson.An album may be bought by one or morecustomers, and one customer may buy one ormore albums. Additionally, an employee maymonitor one or more albums; however, an albumis monitored by exactly one employee. Suppliersmay provide one or more albums; however, analbum is supplied by exactly one supplier. Usingthe above information, draw an E-R diagram forthe CD warehouse database. Identify the relationshipcardinalities and the key attribute of eachentity.8. One of the three-star hotels in the Miami area isin the process of updating its database. The hotelhas various room types on each of its floors. Therooms may be regular, deluxe, or a suite and eachcan be either a single, double, or triple. The suiteshave ocean views and are bigger than the regularrooms. The deluxe rooms are as big as suites, butthey do not have an ocean view. All the roomshave air conditioning. Most of the rooms arenon-smoking, but the hotel offers some smokingrooms as well. Each floor has a different numberof a particular room type. The price of each roomdiffers by the size of the room, the view, and theroom’s location (first floor, second floor, etc.).The customers are charged on a per-daybasis. The number of days is computed based onthe check-in time and the check-out time. Thefollowing details are stored for each customer:name, address, check-in date, check-out date,payment method, and final bill amount. In additionto the room charges, there may be extra fees,such as telephone usage, fax services, extra beds,and room service. For this application, we assumethat a room can be booked by more thanone customer as long as there is no overlap andthat a customer can be assigned to any availableroom. Draw an E-R diagram for the hotel databaseand state any assumptions made in order todevelop a complete diagram.9. The Newark divisional office of the Life InsuranceCorporation of America stores all the necessaryinformation about its policyholders in adatabase. A policyholder pays a premium untilthe maturity of the policy or until his or herdeath, at which time the sum assured and thebonus are paid to the beneficiary. The premiumto be paid is determined based on the age of theperson proposed and the term of the policy. TheNewark division records the following informationabout each policyholder: social securitynumber, name, address, date of birth, maturityamount, and annual premium.The corporation has divided its Newarkdivision into 15 zones for its convenience. Foreach zone, they store the Zone ID and the location.Each zone also has a manager. Every zonehas a number of agents allotted, typically rangingfrom 10 to 20 and every agent must procure aminimum of 10 customers. Each policyholder ina particular zone is assigned to only one agentaffiliated with that zone; this agent puts forth theterms of the policy. Additionally, an agent in aparticular zone can serve multiple policyholders.Make assumptions for the remaining relationshipsand draw an E-R diagram for the corporation’sdatabase.10. Ford distribution centers provide automotiveparts to authorized dealers. The dealers thendistribute the parts to customers throughoutNorth America. Ford is under pressure to provideexcellent customer service at a minimumcost. Maintaining a well-organized database of

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!