subject

Assume that The Queen Anne Curiosity Shop designs a database with the following tables:CUSTOMER (CustomerID, LastName, FirstName, Address, City, State, ZIP, Phone, Email)EMPLOYEE (EmployeeID, LastName, FirstName, Phone, Email)VENDOR (VendorID, CompanyName, ContactLastName, ContactFirstName, Address, City, State, ZIP, Phone, Fax, Email)ITEM (ItemID, ItemDescription, PurchaseDate, ItemCost, ItemPrice, VendorID)SALE (SaleID, CustomerID, EmployeeID, SaleDate, SubTotal, Tax, Total)SALE_ITEM (SaleID, SaleItemID, ItemID, ItemPriceThe referential integrity constraints are:CustomerID in PURCHASE must exist in CustomerID in CUSTOMERVendorID in ITEM must exist in VendorID in VENDORCustomerID in SALE must exist in CustomerID in CUSTOMEREmployeeID in SALE must exist in EmployeeID in EMPLOYEESaleID in SALE_ITEM must exist in SaleID in SALEItemID in SALE_ITEM must exist in ItemID in ITEMAssume that CustomerID of CUSTOMER, EmployeeID of EMPLOYEE, ItemID of ITEM, SaleID of SALE, and SaleItemID of SALE_ITEM are all surrogate keys with values as follows:CustomerID Start at 1 Increment by 1EmployeeID Start at 1 Increment by 1VendorID Start at 1 Increment by 1ItemID Start at 1 Increment by 1SaleID Start at 1 Increment by 1A vendor may be an individual or a company. If the vendor is an individual, the CompanyName field is left blank, while the ContactLastName and ContactFirstName fields must have data values. If the vendor is a company, the company name is recorded in the CompanyName field, and the name of the primary contact at the company is recorded in the ContactLastName and ContactFirstName fields. For each SQL statement you write, show the results based on your data. R. Write an SQL statement to modify the vendor with CompanyName of "Linens and Things" to "Linens and Other Stuff".S. Write SQL statements to switch the values of Vendor CompanyName so that all rows currently having the value Linens and Things will have the value Lamps and Lighting and all rows currently having the value Lamps and Lighting will have the value Linens and Things, T. Given your assumptions about cascading solutions in your answer to part B, write the fewest number of DELETE statements possible to remove all the data in your database but leave the table structures in tact. Do not run these statements if you are using an actual database. My answer to Part B was:CREATE TABLE Sale_Item ( SaleID Int NOT NULL, SaleItemID Int NOT NULL, ItemID Int NOT NULL, ItemPrice Numeric NOT NULL, CONSTRAINT SALE_ITEM_PK PRIMARY KEY(SaleID, SaleItemID) ); FOREIGN KEY (SaleID) REFERENCES SALE ON DELETE CASCADE); FOREIGN KEY (itemID) REFERENCES ITEM ON DELETE CASCADE);

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
What is the algorithm for building a binary tree program
Answers: 2
question
Computers and Technology, 22.06.2019 09:50
17. implement the jvm dload instruction for the mic-2. it has a 1-byte index and pushes the local variable at this position onto the stack. then it pushes the next higher word onto the stack as well
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
You know the right answer?
Assume that The Queen Anne Curiosity Shop designs a database with the following tables:CUSTOMER (Cus...
Questions
question
History, 10.03.2020 04:02
question
Mathematics, 10.03.2020 04:02
Questions on the website: 13722360