Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write SQL codes for these requirements based off of the five tables below. I have attached five pictures of the five tables there are with

Write SQL codes for these requirements based off of the five tables below. I have attached five pictures of the five tables there are with what each of them contain.
1.List unique item classes stored in my database.
2.List the warehouse number and the number of different parts stored in each
warehouse, only include those warehouse with more than 2 different parts.
3.List the warehouse number and the maximum number of units on hand for parts stored
in each of the warehouse. Rename the new column Max_UOH.
4.List the part number, total dollar amount for each part stored, and the warehouse
number for the part. Rename the calculated column TOTAL_AMOUNT.
TOTAL_AMOUNT=Units_ON_HAND*UNIT_PRICE
5.List the class and total number of units on hand for each class. Rank your results in
descending order on the total number of units on hand.
6.List stored information for all the orders placed between August 3rd and August 6th of
2013. (not including August 3rd 2013 and August 6th 2013).
7.List all the order date and the number of orders placed on each date. Rank your results
in descending order on the number of orders.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
SELECT FRON ORDER LNE ORDER NUMBER PART NUMBER NUMBER ORDERED 21 05 22.95 4999

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

Students also viewed these Databases questions

Question

help

Answered: 1 week ago

Question

Describe the new structures for the HRM function. page 676

Answered: 1 week ago