Question

you will write your solutions to problems A - G. You will turn in this assignment...

you will write your solutions to problems A - G.

You will turn in this assignment by uploading a PDF file that contains your answers.

Using these relations:

CUSTOMER(CustomerID, LastName, FirstName, EmailAddress, EncryptedPassword, Address, City, State, ZIP, Phone, ReferredBy)

SALE(SaleID, CustomerID, InvoiceDate, PreTaxTotal, Tax, Total)

SALE_ITEM(SaleID, SaleItemID, PurchaseID, SalePrice)

PURCHASE(PurchaseID, PurchaseItem, PurchasePrice, PurchaseDate, VendorID)

VENDOR(VendorID, Vendor, Phone)

A.

1. List all functional dependencies.

2. List any multivalued dependencies.

3. List all candidate keys.

4. List all primary keys.

5. List all foreign keys.

6. State any assumptions you make as you list these components.

B. List questions you would ask the owners of the Queen Anne Curiosity Shop to verify your assumptions.

C. If there were any multivalued dependencies, create the tables needed to eliminate these dependencies.

D. Do these data have the multivlue, multicolumn problem? If so, how would you deal with it?

E. Do these data have the inconsistent data problem? If so, how would you deal with it?

F. Do these data have a null (missing) value problem? If so, how would you deal with it?

G.Do these data have the general--purpose remarks value problem? If so, how would you deal with it?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)

Functional dependencies

CUSTOMER

CustomerID -> { LastName, FirstName, EmailAddress, Address, ZIP, Phone, ReferredBy }

EmailAddress -> { EncryptedPassword }

Zip -> { City, State }

SALE

SaleID -> { CustomerID, InvoiceDate, PreTaxTotal, Tax, Total }

SALE_ITEM

{ SaleID ,SaleItemID } -> { PurchaseID, SalePrice }

PURCHASE

{ PurchaseID , PurchaseItem } -> { PurchasePrice, PurchaseDate, VendorID }

VENDOR

VendorID -> { Vendor, Phone }

2)

Multivalued dependency

Phone in CUSTOMER table

Phone in VENDOR table

3)

Candidate keys

CUSTOMER

CK = { CustomerID } , { EmailAddress } , {Zip}

SALE

CK = { SaleID }

SALE_ITEM

CK = { SaleID ,SaleItemID }

PURCHASE

CK = { PurchaseID , PurchaseItem }

VENDOR

CK = {VendorID }

4)

Primary keys

CUSTOMER

PK = { CustomerID }  

SALE

PK = { SaleID }

SALE_ITEM

PK = { SaleID ,SaleItemID }

PURCHASE

PK = { PurchaseID , PurchaseItem }

VENDOR

PK = {VendorID }

5)

Foreign keys

SALE

FK = CustomerID,

SALE_ITEM

FK = SaleID , PurchaseID

PURCHASE

FK = VendorID

*************END**************PLS GIVE ME GOOD RATING****************************

Add a comment
Know the answer?
Add Answer to:
you will write your solutions to problems A - G. You will turn in this assignment...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Assume that The Queen Anne Curiosity Shop designs a database with the following tables. CUSTOMER (CustomerID,...

    Assume that The Queen Anne Curiosity Shop designs a database with the following tables. CUSTOMER (CustomerID, LastName, FirstName, EmailAddress, EncyptedPassword, City, State, ZIP, Phone, ReferredBy) EMPLOYEE (EmployeeID, LastName, FirstName, Position, Supervisor, OfficePhone, EmailAddress) VENDOR (VendorID, CompanyName, ContactLastName, ContactFirstName, Address, City, State, ZIP, Phone, Fax, EmailAddress) ITEM (ItemID, ItemDescription, PurchaseDate, ItemCost, ItemPrice, VendorID) SALE (SaleID, CustomerID, EmployeeID, SaleDate, SubTotal, Tax, Total) SALE_ITEM (SaleID, SaleItemID, ItemID, ItemPrice) The referential integrity constraints are: ReferredBy in CUSTOMER must exist in CustomerID in CUSTOMER Supervisor...

  • THE QUEEN ANNE CURIOSITY SHOP PROJECT QUESTIONS Figure 2-36 shows typical sales data for the Queen...

    THE QUEEN ANNE CURIOSITY SHOP PROJECT QUESTIONS Figure 2-36 shows typical sales data for the Queen Anne Curiosity Shop, and Figure 2.37 shows typical purchase data. A. Using these data, state assumptions about functional dependencies among the columns of data. Justify your assumptions on the basis of these sample data and also on the basis of what you know about retail sales. FIGURE 2-36 Sample Sales Data for the Queen Anne Curiosity Shop LastName FirstName Phone InvoiceDate Shire Robert 206-524-2433...

  • C++ In this assignment, you will write a class that implements a contact book entry. For...

    C++ In this assignment, you will write a class that implements a contact book entry. For example, my iPhone (and pretty much any smartphone) has a contacts list app that allows you to store information about your friends, colleagues, and businesses. In later assignments, you will have to implement this type of app (as a command line program, of course.) For now, you will just have to implement the building blocks for this app, namely, the Contact class. Your Contact...

  • Creating linked list data structure Overview The purpose of this assignment is for you to write...

    Creating linked list data structure Overview The purpose of this assignment is for you to write a data structure called a Linked List, which utilizes templates (similar to Java’s generics), in order to store any type of data. In addition, the nature of a Linked List will give you some experience dealing with non-contiguous memory organization. This will also give you more experience using pointers and memory management. Pointers, memory allocation, and understand how data is stored in memory will...

  • a. You have 5 problems in this assignment. b. G++ compiler will be used to compile...

    a. You have 5 problems in this assignment. b. G++ compiler will be used to compile your source codes. c. Your program will be tested on Ubuntu 16.04. d. You are not allowed to use global variables in your implementation. e. Your program will get two arguments, input and output file names, from the command line: >> Your_Executable INPUT_FILE_NAME OUTPUT_FILE_NAME 1. Given a number ? , we initially have ?+1 different sets which are {0}, {1}, {2}, ... , {?}....

  • Assignment Overview This writing assignment requires you to have a general idea of a researchable topic...

    Assignment Overview This writing assignment requires you to have a general idea of a researchable topic related to the field of business. You will create a knowledge list, an expansive compilation of questions, an inquiry question, and a research proposal that you will likely address later through your final research paper. Deliverables 2- page paper (12 point font) written in a word processing program (such as MS Word). Activity Details Perform the following tasks: Step 1: Create a knowledge list...

  • Assignment 2 In this assignment, you will write two short programs to solve problems using recursion....

    Assignment 2 In this assignment, you will write two short programs to solve problems using recursion. 1. Initial Setup Log in to Unix. Run the setup script for Assignment 2 by typing: setup 2 2. Towers of Hanoi Legend has it that in a temple in the Far East, priests are attempting to move a stack of disks from one peg to another. The initial stack had 64 disks threaded onto one peg and arranged from bottom to top by...

  • (Mobile App Development Assignment). Note: Please write the Java and XML code(s) if you are going...

    (Mobile App Development Assignment). Note: Please write the Java and XML code(s) if you are going to answer the problem. Also, please give me a link of where you got the images from. Problem 1 - Customize a content display with GridView We have gone through the process of creating a customized display with a ListView. (Figure 1) For each list item, you have one ImageView and two TextView. We created a ListAdapter object to manage ListView content. Because we...

  • == Programming Assignment == For this assignment you will write a program that reads in the...

    == Programming Assignment == For this assignment you will write a program that reads in the family data for the Martian colonies and stores that data in an accessible database. This database allows for a user to look up a family and its immediate friends. The program should store the data in a hashtable to ensure quick access time. The objective of this assignment is to learn how to implement and use a hashtable. Since this is the objective, you...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT