Database Fdd


Published on

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Database Fdd

  1. 1. Database Design Tutorial 1 1. Using the following databases write the database schema and Network diagrams. a. Shop database PartDetails partName colour Cost suppierId SuplierDetails suppierId address phone b. Flower database DeliverlyInfo DeliveryId category size FlowerInfo Id Name LatinName HighZoneI LowZoneId DeliveryI Light Soil d d ZoneInfo ZoneId LowestTemp highestTemp c. PurchaseProd Customer cNo title sName initials street city postc credLim balance Invoice invoNo cNo invDate amount Payment invoNo paytNo pmtDate amount Version 1.1 1 of 7
  2. 2. Database Design Tutorial 2 Tutorial 2: Functional Dependency Diagrams: Complete the following: 1. For each of the tables of data below, draw a functional dependency diagram. Table 1 Table 2 Table 3 2. For each of the following tables, draw a functional dependency diagram. Table 1 Table 2 a. Assume a tute group meets only once a week. b. How would the diagram be different if this were not the case? Version 1.1 2 of 7
  3. 3. Table 3 3. For the following business rules, pick out the data elements and draw functional dependency diagrams. 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. The grades received by students (identified by student_id) in units in different semesters. c. The price of cars (identified by registration number) in car yards owned by a dealer. d. The outstanding loans which are due by a borrower (identified by borrower_id) on a particular due date of books (identified by accession number). e. The date, time and amount of withdrawals and deposits on accounts (identified by account_no). f. The total distance travelled in kilometers by cars (identified by registration number) used by drivers (identified by employee#) on a day (identified by date). Assume a car can be driven by more than one driver in a day. g. A person (identified by employee#) can work on more than one project (identified by project_id). A person starts on a project on a single 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. h. Deliveries (identified by delivery number) include many parts (identified by part number). There is quantity delivered of each part, and each part has one weight (measured in kilograms). Parts come in many colours. The quantity on hand is maintained for each colour of each part. i. Subjects (identified by subject name) use a number of texts (identified by title). Each text can have a number of authors (identified by author name). Each subject can be taught a number of semesters and there is one teacher (identified by teacher name) for each subject each semester. 4. Consider a simple personnel application where an employee is uniquely identified by an employee number. Each employee has a name and a salary. Suppose different employees can have the same name or salary. Draw a functional dependency diagram for the application. Suppose further that each employee worked in a department and that all employees in the same department received the same salary. Modify your FDD accordingly. Eliminate redundant FDs. Version 1.1 3 of 7
  4. 4. 5. Shoes are sold in a variety of styles and sizes. A style is identified by a style number. Each style has a description, but the same description may apply to several styles. Weekly-Sales represents the number of shoes of a particular size and style sold in the previous week. Monthly- style-value is the total sales value in the previous month for each style. Draw an FDD for the data elements Style-Number, Description, Size, Weekly-Sales, Monthly-Style-Value. How would your diagram change if you incorporated Week and Month, so historical data of Weekly-Sales and Monthly-Style-Value could be maintained? 6. Refer to the forms below. Draw FDDs & network diagrams for forms: a. CUSTOMER ORDER b. THE SOFTWARE SOFTIES Version 1.1 4 of 7
  5. 5. Version 1.1 5 of 7
  6. 6. c. FASHION DISTRIBUTORS d. BILBO & BAGGINS Version 1.1 6 of 7
  7. 7. e. THE HOUSE OF MUSIC Version 1.1 7 of 7