Database Fdd
-
Upload
cathie101 -
Category
Technology
-
view
575 -
download
3
description
Transcript of Database Fdd
![Page 1: Database Fdd](https://reader036.fdocuments.in/reader036/viewer/2022082805/54bb627e4a795979098b45bb/html5/thumbnails/1.jpg)
1. Using the following databases write the database schema and Network diagrams.
a. Shop databasePartDetailspartName colour Cost suppierId
SuplierDetailssuppierId address phone
b. Flower databaseDeliverlyInfoDeliveryId category size
FlowerInfoId Name LatinName HighZoneId LowZoneId DeliveryI
dLight Soil
ZoneInfoZoneId LowestTemp highestTemp
c. PurchaseProdCustomercNo title sName initials street city postc credLim balance
InvoiceinvoNo cNo invDate amount
PaymentinvoNo paytNo pmtDate amount
Version 1.1 1 of 7
Database DesignTutorial 1
![Page 2: Database Fdd](https://reader036.fdocuments.in/reader036/viewer/2022082805/54bb627e4a795979098b45bb/html5/thumbnails/2.jpg)
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
Database DesignTutorial 2
![Page 3: Database Fdd](https://reader036.fdocuments.in/reader036/viewer/2022082805/54bb627e4a795979098b45bb/html5/thumbnails/3.jpg)
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
![Page 4: Database Fdd](https://reader036.fdocuments.in/reader036/viewer/2022082805/54bb627e4a795979098b45bb/html5/thumbnails/4.jpg)
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, sohistorical data of Weekly-Sales and Monthly-Style-Value could bemaintained?
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
![Page 5: Database Fdd](https://reader036.fdocuments.in/reader036/viewer/2022082805/54bb627e4a795979098b45bb/html5/thumbnails/5.jpg)
Version 1.1 5 of 7
![Page 6: Database Fdd](https://reader036.fdocuments.in/reader036/viewer/2022082805/54bb627e4a795979098b45bb/html5/thumbnails/6.jpg)
c. FASHION DISTRIBUTORS
d. BILBO & BAGGINS
Version 1.1 6 of 7
![Page 7: Database Fdd](https://reader036.fdocuments.in/reader036/viewer/2022082805/54bb627e4a795979098b45bb/html5/thumbnails/7.jpg)
e. THE HOUSE OF MUSIC
Version 1.1 7 of 7