SlideShare a Scribd company logo
1 of 2
Database Design
                                 Tutorial

   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 character
   2. 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 computation
   3. 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. book
   4. Draw an ER Diagram to represent the following situation for an airline:

   “XYZ airline has three major resources aeroplanes, pilots, and crew
   members. Pilots and crew members have respective home bases, to
   which they return at the end of an assigned flight. A flight on a particular
   day must have an aeroplane, at least one pilot and one or more crew
   members attached to it. Each aeroplane has a maintenance base.”




Version 1.1                            1 of 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 it
   publishes. Some authors have written only one book, while others have
   written many; also, some books are co-authored by multiple authors. ABC
   also works with multiple printers; each book, though, is printed by only one
   printer. 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 over
   the final camera-ready copy to the printer when the manuscript has been
   copyedited 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 by
             part_no). any quantity of parts can be ordered in an order.
         b. Students (identified by student_id) are graded in units( with a
             unit-code) in different semesters.
         c. Each car (identified by registration number) is on sale at a
             particular car yard ( at an address) for a price. Each car yard is
             owned be a dealer.
         d. Each book (identified by barcode number) barrowed by a
             member (identified by borrower_id) is due on a particular date.
         e. The date and amounts of all withdrawals and deposits on
             accounts (identified by account_no)
         f. The distance travelled in kilometres by cars (identified by
             registration 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 one
             person can start on the same project on the same date but a
             person can start only once on the same project and cannot start
             on more than one project on the same date. A person can work
             on more than one project.
         h. A delivery (identified by delivery number) may supply many
             parts (identified by part number). Each part has one weight
             (measured in kilograms) and may come in different colours. For
             each part of a certain colour, the quantity delivered is picked
             from 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 of
             authors. An author is identified by their name. Each subject can
             be taught a number of semesters and there is one teacher for
             each subject each semester.
         j. Suppose in case I) different teachers recommend different texts
             for the same subject, but not in different semester.




Version 1.1                           2 of 2

More Related Content

More from Cathie101

Page Layout 2010
Page Layout 2010Page Layout 2010
Page Layout 2010Cathie101
 
Dynamic Web Pages Ch 8 V1.0
Dynamic Web Pages Ch 8 V1.0Dynamic Web Pages Ch 8 V1.0
Dynamic Web Pages Ch 8 V1.0Cathie101
 
Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Cathie101
 
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Cathie101
 
Dynamic Web Pages Ch 9 V1.0
Dynamic Web Pages Ch 9 V1.0Dynamic Web Pages Ch 9 V1.0
Dynamic Web Pages Ch 9 V1.0Cathie101
 
Dynamic Web Pages Ch 7 V1.0
Dynamic Web Pages Ch 7 V1.0Dynamic Web Pages Ch 7 V1.0
Dynamic Web Pages Ch 7 V1.0Cathie101
 
Dynamic Web Pages Ch 5 V1.0
Dynamic Web Pages Ch 5 V1.0Dynamic Web Pages Ch 5 V1.0
Dynamic Web Pages Ch 5 V1.0Cathie101
 
Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Cathie101
 
Dynamic Web Pages Ch 3 V1.0
Dynamic Web Pages Ch 3 V1.0Dynamic Web Pages Ch 3 V1.0
Dynamic Web Pages Ch 3 V1.0Cathie101
 
Dynamic Web Pages Ch 2 V1.0
Dynamic Web Pages Ch 2 V1.0Dynamic Web Pages Ch 2 V1.0
Dynamic Web Pages Ch 2 V1.0Cathie101
 
Dynamic Web Pages 2009v2.1
Dynamic Web Pages 2009v2.1Dynamic Web Pages 2009v2.1
Dynamic Web Pages 2009v2.1Cathie101
 
Sql All Tuts 2009
Sql All Tuts 2009Sql All Tuts 2009
Sql All Tuts 2009Cathie101
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009Cathie101
 
Database Design Fdd 2009
Database Design Fdd 2009Database Design Fdd 2009
Database Design Fdd 2009Cathie101
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009Cathie101
 
Overall Computer Systems 2nd Year 2009
Overall Computer Systems 2nd Year 2009Overall Computer Systems 2nd Year 2009
Overall Computer Systems 2nd Year 2009Cathie101
 
Database Design 2009
Database Design 2009Database Design 2009
Database Design 2009Cathie101
 
Database Design Tut 2 A
Database Design Tut 2 ADatabase Design Tut 2 A
Database Design Tut 2 ACathie101
 

More from Cathie101 (20)

Page Layout 2010
Page Layout 2010Page Layout 2010
Page Layout 2010
 
Css 2010
Css 2010Css 2010
Css 2010
 
Xhtml 2010
Xhtml 2010Xhtml 2010
Xhtml 2010
 
Dynamic Web Pages Ch 8 V1.0
Dynamic Web Pages Ch 8 V1.0Dynamic Web Pages Ch 8 V1.0
Dynamic Web Pages Ch 8 V1.0
 
Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0
 
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0
 
Dynamic Web Pages Ch 9 V1.0
Dynamic Web Pages Ch 9 V1.0Dynamic Web Pages Ch 9 V1.0
Dynamic Web Pages Ch 9 V1.0
 
Dynamic Web Pages Ch 7 V1.0
Dynamic Web Pages Ch 7 V1.0Dynamic Web Pages Ch 7 V1.0
Dynamic Web Pages Ch 7 V1.0
 
Dynamic Web Pages Ch 5 V1.0
Dynamic Web Pages Ch 5 V1.0Dynamic Web Pages Ch 5 V1.0
Dynamic Web Pages Ch 5 V1.0
 
Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0
 
Dynamic Web Pages Ch 3 V1.0
Dynamic Web Pages Ch 3 V1.0Dynamic Web Pages Ch 3 V1.0
Dynamic Web Pages Ch 3 V1.0
 
Dynamic Web Pages Ch 2 V1.0
Dynamic Web Pages Ch 2 V1.0Dynamic Web Pages Ch 2 V1.0
Dynamic Web Pages Ch 2 V1.0
 
Dynamic Web Pages 2009v2.1
Dynamic Web Pages 2009v2.1Dynamic Web Pages 2009v2.1
Dynamic Web Pages 2009v2.1
 
Sql All Tuts 2009
Sql All Tuts 2009Sql All Tuts 2009
Sql All Tuts 2009
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009
 
Database Design Fdd 2009
Database Design Fdd 2009Database Design Fdd 2009
Database Design Fdd 2009
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009
 
Overall Computer Systems 2nd Year 2009
Overall Computer Systems 2nd Year 2009Overall Computer Systems 2nd Year 2009
Overall Computer Systems 2nd Year 2009
 
Database Design 2009
Database Design 2009Database Design 2009
Database Design 2009
 
Database Design Tut 2 A
Database Design Tut 2 ADatabase Design Tut 2 A
Database Design Tut 2 A
 

Database Er

  • 1. Database Design Tutorial 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 character 2. 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 computation 3. 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. book 4. Draw an ER Diagram to represent the following situation for an airline: “XYZ airline has three major resources aeroplanes, pilots, and crew members. Pilots and crew members have respective home bases, to which they return at the end of an assigned flight. A flight on a particular day must have an aeroplane, at least one pilot and one or more crew members attached to it. Each aeroplane has a maintenance base.” Version 1.1 1 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 it publishes. Some authors have written only one book, while others have written many; also, some books are co-authored by multiple authors. ABC also works with multiple printers; each book, though, is printed by only one printer. 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 over the final camera-ready copy to the printer when the manuscript has been copyedited 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 by part_no). any quantity of parts can be ordered in an order. b. Students (identified by student_id) are graded in units( with a unit-code) in different semesters. c. Each car (identified by registration number) is on sale at a particular car yard ( at an address) for a price. Each car yard is owned be a dealer. d. Each book (identified by barcode number) barrowed by a member (identified by borrower_id) is due on a particular date. e. The date and amounts of all withdrawals and deposits on accounts (identified by account_no) f. The distance travelled in kilometres by cars (identified by registration 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 one person can start on the same project on the same date but a person can start only once on the same project and cannot start on more than one project on the same date. A person can work on more than one project. h. A delivery (identified by delivery number) may supply many parts (identified by part number). Each part has one weight (measured in kilograms) and may come in different colours. For each part of a certain colour, the quantity delivered is picked from 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 of authors. An author is identified by their name. Each subject can be taught a number of semesters and there is one teacher for each subject each semester. j. Suppose in case I) different teachers recommend different texts for the same subject, but not in different semester. Version 1.1 2 of 2