logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Vedparkash GuptaAccounting
(5/5)

998 Answers

Hire Me
expert
Ashok GehlotComputer science
(5/5)

632 Answers

Hire Me
expert
Faith BrownComputer science
(5/5)

992 Answers

Hire Me
expert
Antonio SullivannResume writing
(5/5)

532 Answers

Hire Me
Others
(5/5)

Write create statements for each of the above tables, making sure to have appropriate data types and with all keys declared.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Step 1 (30 points):  Write create statements for each of the above tables, making sure to have appropriate data types and with all keys declared.  

Step 2 (15 points):  Create insert statements to populate your tables – you get to come up with the data! Make sure you have at least 15 tuples in Item, 3 in Departments, and 7 in Occasions.

Step 3 (45 points – 5 points for each query):  Now create SQL statements to answer the following questions. Each must be answered in a single query. IMPORTANT: your query must work correctly even if the data in your tables is changed!

1.  List all the information stored in the occasion table.

2.  List the id and name for all departments that begin with a letter H.

3.  List all the item information for all items with no color specified.  

4.  Show all occasions that are from 2020 or are not seasonal.

5.   For each item that costs more than $9.99 show the name of the item, its description, the name of its department, and its cost.

6.  Update the Item tables so that all items associated with occasions with the year of 2020 are now on clearance. (Hint: You will need to use an update statement.)

7. Update the Item tables so that all items on clearance are now 10% less. (Hint: You will need to use an update statement and remember that you can do arithmetic in an update statement.)

8.  For each occasion, show the names and total quantity of items in stock.

9.  For all items whose types are in the “outdoor” department and its color is “green”, show the occasion name and the average year it was released.

Step 4 (10 points):  

Reflecting on the material in this chapter and your work on this assignment, what insight does this give you into how databases can power digital dashboards & reports?   

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme