HIM 361 WEEK 10 ASSIGNMENT 1 DATABASE DESIGN, Assignments of Health sciences

An assignment for a course on database design. It provides instructions for normalizing a table based on the TAL Distributors database. step-by-step instructions for breaking the table into subsets and identifying primary keys. It also provides guidance on assigning names to the newly created tables. This document could be useful as study notes or an assignment for a university course on database design.

Typology: Assignments

2022/2023

Available from 06/03/2023

AceNurse
AceNurse 🇺🇸

4

(16)

757 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
HIM 361 WEEK 10 ASSIGNMENT DATABASE DESIGN
11
On page 174, TAL Distributors Exercises, complete question 1.
The following exercises are based on the TAL Distributors database shown in Figure 5-1.
1. Using your knowledge of TAL Distributors, determine the functional dependencies that
exist in the following table. After determining the functional dependencies, convert this
table to an equivalent collection of tables that are in third normal form.
Item (ItemNum, Description, OnHand, Category, Price, (OrderNum,OrderDate, CustomerNum,
CustomerName, RepNum, LastName, FirstName, NumOrdered, QuotedPrice))
Step 1:
Breaking the group of Columns to create 1st normalization form.
Item (ItemNum, Description, OnHand, Category, Price, OrderNum, OrderDate, CustomerNum,
CustomerName, RepNum, LastName, FirstName, NumOrdered, QuotedPrice)
Step 2:
Converting into the 2nd normalization form.
Identifying the primary keys for each subset;
(ItemNum,
(OrderNum,
(CustomerNum,
(RepNum,
Regrouping the Columns as per dependencies;
(ItemNum, Description, Category, OnHand, Price)
(OrderNum, OrderDate, CustomerNum, CustomerName, RepNum, NumOrdered, QuotedPrice)
(CustomerNum, CustomerName)
(RepNum, LastName, FirstName)
Assigning the names for the newly assigned tables;
Item (ItemNum, Description, Category, OnHand, Price)
Orders (OrderNum, OrderDate, CustomerNum, CustomerName, RepNum, NumOrdered,
QuotedPrice)
Customer (CustomerNum, CustomerName)
pf2

Partial preview of the text

Download HIM 361 WEEK 10 ASSIGNMENT 1 DATABASE DESIGN and more Assignments Health sciences in PDF only on Docsity!

HIM 361 WEEK 10 ASSIGNMENT DATABASE DESIGN

On page 174, TAL Distributors Exercises, complete question 1. The following exercises are based on the TAL Distributors database shown in Figure 5-1.

  1. Using your knowledge of TAL Distributors, determine the functional dependencies that exist in the following table. After determining the functional dependencies, convert this table to an equivalent collection of tables that are in third normal form. Item (ItemNum, Description, OnHand, Category, Price, (OrderNum,OrderDate, CustomerNum, CustomerName, RepNum, LastName, FirstName, NumOrdered, QuotedPrice))

Step 1: Breaking the group of Columns to create 1st^ normalization form. Item (ItemNum, Description, OnHand, Category, Price, OrderNum, OrderDate, CustomerNum, CustomerName, RepNum, LastName, FirstName, NumOrdered, QuotedPrice)

Step 2: Converting into the 2nd^ normalization form. Identifying the primary keys for each subset; (ItemNum, (OrderNum, (CustomerNum, (RepNum, Regrouping the Columns as per dependencies; (ItemNum, Description, Category, OnHand, Price) (OrderNum, OrderDate, CustomerNum, CustomerName, RepNum, NumOrdered, QuotedPrice) (CustomerNum, CustomerName) (RepNum, LastName, FirstName) Assigning the names for the newly assigned tables; Item (ItemNum, Description, Category, OnHand, Price) Orders (OrderNum, OrderDate, CustomerNum, CustomerName, RepNum, NumOrdered, QuotedPrice) Customer (CustomerNum, CustomerName)

Rep (RepNum, LastName, FirstName)

Step 3: Converting to the 3rd^ normalization form and creating a new table called Orderline with the dependent rows: (OrderNum, ItemNum, NumOrdered, QuotedPrice). So the final content would be; Orderline (OrderNum, ItemNum, NumOrdered, QuotedPrice)

Step 4: Naming these tables and put the entire collection together, giving the following: Item (ItemNum, Description, Category, OnHand, Price) Orders (OrderNum, OrderDate, CustomerNum, CustomerName, RepNum, NumOrdered, QuotedPrice) Customer (CustomerNum, CustomerName) Rep (RepNum, LastName, FirstName) Orderline (OrderNum, ItemNum, NumOrdered, QuotedPrice)

The functional dependencies are: Orders table: CustomerNum CustomerName RepNum (LastName, FirstName) Orderline table depends on Orders table for the columns (OrderNum, NumOrdered, QuotedPrice) and Item table for the column ItemNum.