Question
1. Write an SQL statement that adds up the QuantityOnHand column and gives it the Column Name TotalQOH 2. Write an SQL statement that provides
1. Write an SQL statement that adds up the QuantityOnHand column and gives it the Column Name TotalQOH
2. Write an SQL statement that provides the WarehouseID grouped by WarehouseID that provides the count, sum,min,max,avg for the QuantityOnOrder column listed at TotalQOO
3. Write an SQL statement to display the WarehouseID and the sum of QuantityOnHand grouped by WarehouseID that have a QuantityIOnHand less than 3. Name the sum of QuantityOnHand TotalQOH and display the results in descending order of TotalQOH.
4. Write an SQL statement to display the SKU and the sum of QuantityOnHand, provide the minimum for QuantityOnOrder, grouped by SKU that have a QuantityIOnHand less than 3 or a QuantityOnOrder = 0. Name the sum of QuantityOnHand TotalQOH and name the QuantityOnOrder TotalQOO. Display the results in descending order of TotalQOH
5. Write an SQL statement that displays SKU, SKU_Description, (QuantityOnHand added to the QuantityOnOrder as totalqty) where the total of these two fields < 175
6. Write an sql statement that provides the average rating for Ned Jones using the IN keyword and using Ned Jones to determine the average ratings recorded by Ned Jones.
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