Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

COMP 3321 North American University Database Systems Questions

COMP 3321 North American University Database Systems Questions

COMP 3321 North American University Database Systems Questions

Description

Unformatted Attachment Preview

COMP 3321 atabase Systems
Chapter 7 atabase Construction and Application Processing
Assignment 7
Name: _________ __________
Due Date: November 29th, 2022,
Grade: _______
Consider the following model:
1. Check the Assignment 6 solution and compare it with your work. Make necessary changes to
your work, if needed.
2. Use the attached SQL script named HSD-Insert-Data.sql to insert the data for the HSD
database. Just run the file.
3. Create a SQL script named HSD-Data.sql and add the following SQL statements:
a. Write an SQL statement to modify PRODUCT UnitPrice for ProductNumber VK004 to
$34.95 instead of the current UnitPrice of $24.95.
b. Add a column called åminarDescription4o the SEMINAR table. The new column should
be maximum of 50 characters and it is not null.
c. Write a statement to drop the column åminarDescriptionŠd. Imagine you have a table in the schema called IMPORTED_PRODUCT that has the same
structure as the PRODUCT table. Write a statement to insert all the data from the
IMPROTED_PRODUCT to the PRODUCT table.
Note: The statement may not run in old versions of MySQL.
4. Create a SQL script named HSD-MoreData.sql and add the following SQL statements:
a. Write an SQL statement to create a view called InvoiceSummaryView that contains
INVOICE.InvoiceNumber, INVOICE.InvoiceDate, LINE_ITEM.LineNumber,
LINE_ITEM.ProductNumber, PRODUCT.ProductDescription, and LINE_ITEM.UnitPrice.
b. Create and test a user-defined function named LastNameFirst that combines two parameters
named FirstName and LastName into a concatenated name field formatted LastName,
FirstName (including the comma and space).
c. Write an SQL statement to create a view called CustomerInvoiceSummaryView that contains
INVOICE.InvoiceNumber, INVOICE.InvoiceDate, the concatenated customer name using
the LastNameFirst function, CUSTOMER.EmailAddress, and INVOICE.Total.
d. Create a stored procedure that selects Customers&irst name and last name from a certain
City with a certain ZipCode. **May not be run, just write a procedure**
e. Create a stored procedure out of the INVOICE table that selects a field as the sum of Total
and Shipping if Subtotal is less than 100 and selects a field as the Total only if Subtotal is
equal or greater than 100. **May not be run, just write a procedure**
Compress to ZIP file, the 2 files HSD-MoreData.sql and HSD-MoreData.sq, and upload it to
the portal.
End of Assignment #7. Good Luck

Purchase answer to see full
attachment

User generated content is uploaded by users for the purposes of learning and should be used following our honor code & terms of service.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20