Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

for warehouses having fewer than two SKUs in their TotalltemsOnHandLT 3 . Display the results in descending order of TotalltemsOnHandLT 3 . 2 . 3

for warehouses having fewer than two SKUs in their TotalltemsOnHandLT3. Display the results in descending order of
TotalltemsOnHandLT3.
2.39 In your answer to Review Question 2.38, was the WHERE clause or the HAVING clause applied first? Why?
Use both the INVENTORY and WAREHOUSE tables to answer Review Questions 2.40 through 2.52:
2.40 Write an SQL statement to display the SKU, SKU_Description, WarehouselD, WarehouseCity, and WarehouseState for all items
stored in the Atlanta, Bangor, or Chicago warehouse. Do not use the IN keyword.
2.41 Write an SQL statement to display the SKU, SKU_Description, WarehouseID, WarehouseCity, and WarehouseState for all items
stored in the Atlanta, Bangor, or Chicago warehouse. Use the IN keyword.
2.42 Write an SQL statement to display the SKU, SKU_Description, WarehouseID, WarehouseCity, and WarehouseState of all items
not stored in the Atlanta, Bangor, or Chicago warehouse. Do not use the NOT IN keyword.
2.43 Write an SQL statement to display the SKU, SKU_Description, WarehouseID, WarehouseCity, and WarehouseState of all items
not stored in the Atlanta, Bangor, or Chicago warehouse. Use the NOT IN keyword.
2.44 Write an SQL statement to produce a single column called ItemLocation that combines the SKU_Description, the phrase "is
located in," and WarehouseCity. Do not be concerned with removing leading or trailing blanks.
2.45 Write an SQL statement to show the SKU, SKU_Description, and WarehouselD for all items stored in a warehouse managed by
'Lucille Smith'. Use a subquery.
2.46 Write an SQL statement to show the SKU, SKU_Description, and WarehouseID for all items stored in a warehouse managed by
'Lucille Smith'. Use a join, but do not use JOIN ON syntax.
image text in transcribed

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

=+ 4. Why should policymakers think about incentives?

Answered: 1 week ago

Question

=+ 2. What is the opportunity cost of seeing a movie?

Answered: 1 week ago

Question

=+ what roles should government play in them ?

Answered: 1 week ago