Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PART # 1 QUESTIONS: ( Repeated from Textbook, for Convenience ) : Once you have setup your Cape _ Codd database, record and store SQL
PART #
QUESTIONS: Repeated from Textbook, for Convenience:
Once you have setup your CapeCodd database, record and store SQL statements that answer each of the following questions. You must also show the results of executing each of the SQL statements that answer each of the following questions.
Use both the INVENTORY and WAREHOUSE tables to answer Questions through below:
Write an SQL statement to display the SKU, SKUDescription, WarehouseID, WarehouseCity, and WarehouseState for all items stored in the Atlanta, Bangor, or Chicago warehouse. Do not use the IN keyword.
Write an SQL statement to display the SKU, SKUDescription, WarehouseID, WarehouseCity, and WarehouseState for all items stored in the Atlanta, Bangor, or Chicago warehouse. Use the IN keyword.
Write an SQL statement to display the SKU, SKUDescription, WarehouseID, WarehouseCity, and WarehouseState of all items not stored in the Atlanta, Bangor, or Chicago warehouse. Do not use the NOT IN keyword.
Write an SQL statement to display the SKU, SKUDescription, WarehouseID, WarehouseCity, and WarehouseState of all items not stored in the Atlanta, Bangor, or Chicago warehouse. Use the NOT IN keyword.
Write an SQL statement to produce a single column called ItemLocation that combines the SKUDescription, the phrase is located in and WarehouseCity. Do not be concerned with removing leading or trailing blanks.
Write an SQL statement to show the SKU, SKUDescription, and WarehouseID for all items stored in a warehouse managed by 'Lucille Smith'. Use a subquery.
Write an SQL statement to show the SKU, SKUDescription, and WarehouseID for all items stored in a warehouse managed by 'Lucille Smith'. Use a join, but do not use JOIN ON syntax.
Write an SQL statement to show the SKU, SKUDescription, and WarehouseID for all items stored in a warehouse managed by 'Lucille Smith'. Use a join using JOIN ON syntax.
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.
Write an SQL statement to show the WarehouseID and average QuantityOnHand of all items stored in a warehouse managed by 'Lucille Smith'. Use a join, but do not use JOIN ON syntax.
Write an SQL statement to show the WarehouseID and average QuantityOnHand of all items stored in a warehouse managed by 'Lucille Smith'. Use a join using JOIN ON syntax.
Write an SQL statement to show the WarehouseID, WarehouseCity, WarehouseState, Manager, SKU, SKUDescription, and QuantityOnHand of all items stored in a warehouse managed by 'Lucille Smith'. Use a join using JOIN ON syntax.
Write an SQL statement to display the WarehouseID, the sum of QuantityOnOrder, and sum of QuantityOnHand, grouped by WarehouseID and QuantityOnOrder. Name the sum of QuantityOnOrder as TotalItemsOnOrder and the sum of QuantityOnHand as TotalItemsOnHand. Use only the INVENTORY table in your SQL statement.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started