Database Er

download Database Er

If you can't read please download the document

description

 

Transcript of Database Er

  • 1. Database DesignTutorial 1. Which of the following are likely to be reasonable entity types in a typical business system. For those that you do not think are reasonable entity types, indicate why they do not qualify. a. Customer b. Computer sales tax c. Height d. Product e. Tomato f. Religion g. Temperature h. Edit transaction i. Manufactured part j. Map k. ASCII character2. Which of the following are likely to be relationships in an ERD and which are not? Why or why not? a. Purchases b. Customer c. Belongs to d. Weight e. Produces f. Sales tax computation3. For each of the following, suggest a way to identifying an instance. Which ones are therefore likely to be strong or weak entities? a. Person b. street corner c. appointment d. film e. real estate purchase f. stock holding g. car h. personal computer i. super market purchase j. journey k. road sign l. book4. Draw an ER Diagram to represent the following situation for an airline: XYZ airline has three major resources aeroplanes, pilots, and crewmembers. Pilots and crew members have respective home bases, towhich they return at the end of an assigned flight. A flight on a particularday must have an aeroplane, at least one pilot and one or more crewmembers attached to it. Each aeroplane has a maintenance base. Version 1.11 of 2

2. Database Design Tutorial 5. Draw an ER Diagram to describe the following situation for a publisher:ABC Press works with several different authors who write the books itpublishes. Some authors have written only one book, while others havewritten many; also, some books are co-authored by multiple authors. ABCalso works with multiple printers; each book, though, is printed by only oneprinter. An editor as ABC Press works with several authors at a time,editing and producing their book projects; it is the editors job to turn overthe final camera-ready copy to the printer when the manuscript has beencopyedited and typeset. 6. Study the following narrative and draw ER Diagrams with cardinality constraints. Ensure that every entity identifiable.a. Orders(identified by order_id) are made for parts (identified bypart_no). any quantity of parts can be ordered in an order.b. Students (identified by student_id) are graded in units( with aunit-code) in different semesters.c. Each car (identified by registration number) is on sale at aparticular car yard ( at an address) for a price. Each car yard isowned be a dealer.d. Each book (identified by barcode number) barrowed by amember (identified by borrower_id) is due on a particular date.e. The date and amounts of all withdrawals and deposits onaccounts (identified by account_no)f. The distance travelled in kilometres by cars (identified byregistration number) by particular drivers (identified by driver_id)on various dates.g. A person starts on a project on a given start date. More than oneperson can start on the same project on the same date but aperson can start only once on the same project and cannot starton more than one project on the same date. A person can workon more than one project.h. A delivery (identified by delivery number) may supply manyparts (identified by part number). Each part has one weight(measured in kilograms) and may come in different colours. Foreach part of a certain colour, the quantity delivered is pickedfrom the quantity on hand.i. Subjects (identified by subject name) use a number of texts.Each text has a unique name and can have a number ofauthors. An author is identified by their name. Each subject canbe taught a number of semesters and there is one teacher foreach subject each semester.j. Suppose in case I) different teachers recommend different textsfor the same subject, but not in different semester. Version 1.1 2 of 2