Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Table 5: WAREHOUSE WarehouseID WarehouseCity WarehouseState Manager 100 Atlanta GA Dave Jones 200 Chicago IL Lucille Smith Bangor Bart Evans 400 Seattle WA Dale Rogers

image text in transcribed

Table 5: WAREHOUSE WarehouseID WarehouseCity WarehouseState Manager 100 Atlanta GA Dave Jones 200 Chicago IL Lucille Smith Bangor Bart Evans 400 Seattle WA Dale Rogers SqFeet 125,000 100,000 150,000 130,000 300 Table 6: INVENTORY WarehouseID SKU SKU_Description Order 100 100100 QuantityOn QuantityOn Hand 250 0 100 50 200 300 100 0 400 200 0 Std. Scuba Tank, Yellow Std. Scuba Tank, Yellow Std. Scuba Tank, Yellow Std. Scuba Tank, Yellow Std. Scuba Tank, Magenta Std. Scuba Tank, Magenta Std. Scuba Tank, Magenta Std. Scuba Tank, Magenta 100100 100100 100100 100200 100200 100200 100200 100 200 200 75 30 75 100 300 100 400 250 0 (a) Write an SQL statement to show the WarehouseID and average QuantityOnHand of all items stored in a warehouse managed by "Lucille Smith'. Use a subquery. [8 marks] Write an SQL statement to show a unique SKU and SKU_Description for all products having a 'd' in the third position from the left in SKU_Description. (4 marks] (c) Write an SOL statement to create table WAREHOUSE. The structure of the table is given in Table 7 below. Page 5 of 9 CISB 214/C/SB3213, Sendster I, 2020/2021 Remarks Table 7: WAREHOUSE_STRUCTURE Column Name Type Key WarehouseID Integer Primary Key WarehouseCity VARCHAR2(30) Warehouse State VARCHAR2(2) Required YES YES YES IN ("GA", MA', 'WA) only VARCHAR2(35) Manager SqFeet Integer

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_2

Step: 3

blur-text-image_3

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

4. How would you deal with the store manager?

Answered: 1 week ago