[Solved] SOLVED:Pretty Prints III solution

$25

File Name: SOLVED:Pretty_Prints_III_solution.zip
File Size: 310.86 KB

SKU: [Solved] SOLVED:Pretty Prints III solution Category: Tag:
5/5 - (1 vote)

ASSIGNMENT DESCRIPTION: In assignment 3, a script file should be created to contain a set of queries that the Pretty Prints Company executes each month to better manage their business. Use the database created for Print Prints that was created in Assignment 2. The script file can be created within the MySQL Workbench. Incluse the SQL commands necessary to satisfy the follow queries in the script.

The following queries should be included in the script:

Create a view named Under_100. It consists of the item_id, title, artist, unit_price and order_qty for every print with a unit_price under 100 dollars.Create a view named Allen. It consists of the customer_id, customer_name, customer_phone, title, and artist of each print ordered.Create a view named orders. It consists of the item_id, title, artist, unit_price and order_qty for every print ordered in the range of 2014-01-01 and 2014-02-28.Create a view named zip_27. It consists of the customer_name, customer_phone, title, artist and date_shipped of each print ordered by a customer whose zip code begins with 27.Create the following indexes. Use the indicated index name.Create an index named customer_id on the customer_id field in the customers table.Create an index named name on the customer_name field in the customers table.Create an index named shipped on the customer_id and ship_date in the orders table.Drop the name index.Specify the integrity constraint that the unit_price of any print must be more than $35.Ensure that the following are foreign keys (that is, specify referential integrity) within the prints database.customer_id is a foreign key in the orders table.Item_id is a foreign key in the orderline table.Add to the items table a new character field named type that is one character in length.Change the type field in the items table to M for the print titled Skies Above.Change the length of the artist field in the items table to 30.What command would you use to delete the orders table from the prints database? (Do not delete theorders table.)

REQUIREMENTS:

Each student must work independently on this assignment. No group work is allowed.

Submit completed work into Moodle2.

Take a screenshot of the submission verification in the event you need proof of submission.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SOLVED:Pretty Prints III solution
$25