A.
Functional dependencies:
Phone -> FirstName,LastName
InvoiceItem , InvoiceDate -> Price,Tax
B.
1. Incorrect .LastName can be repeated so cannot be primary key .Item is not functionally dependent on Customer
2. Incorrect .InvoiceItem is not functionally dependent on Customer
3. Incorrect .Item is not functionally dependent on Customer
4. Incorrect . Replication of data exists
5.Incorrect .Item is not functionally dependent on Customer
6.Incorrect . No foreign key
7.Incorrect .A Customer can have many invoices
8.Correct.
C.
Customer(CustomerID , Phone ,FirstName,LastName)
Sale(SaleID , InvoiceItem , InvoiceDate , Price,Tax, CustomerID)
D.
Customer(CustomerID , Phone ,FirstName,LastName)
Sale(SaleID , CustomerID, , InvoiceDate )
SaleItem(SaleID,InvoiceItem,Price,Tax)
underlined are primary keys and italicized are foreign keys.
Do ask if any doubt. Please up-vote.
THE QUEEN ANNE CURIOSITY SHOP PROJECT QUESTIONS Figure 2-36 shows typical sales data for the Queen...
For this option, you will use the Sales and Purchased Items tables below. You are to develop CREATE TABLE statements for both tables and analyze the two tables for redundancies in the dataset. Finally, you should explain why these two tables are not candidates for a relational model. Sales Table LastName FirstName Phone InvoiceDate InvoiceItem Price Tax Total Shire Robert 206-524-2422 12/14/2017 Antique Desk 3000.00 249.00 3249.00 Shire Robert 206-524-2422 12/14/2017 Antique Desk Chair 500.00 41.50 541.50 Goodyear Katherine 206-524-3544...
a. picture b. Using the tables created on the preview question that should be on BCNF create a SQL statement to denormalize it. Convert the below table up to BCNE Salesinformation LastHarnest Name Phone InvoldeDate Invoice temPrice Tax Total LastName FirstName Phone InvoiceDate Invoiceltem Price Tax T Shire Robert 206-524-2433 14-Dec-13 Antique Desk 3,000.00 249.00 3,249.00 Shire Robert 206-524-2433 14-Dec-13 Antique Desk Chair 500.00 41.50 541.50 Goodyear Katherine 206-524-3544 15-Dec-13 Dining Table Linens 1,000.00 83.00 1.083.00 Bancroft Chris 425-635-9788 15-Dec-13...