Question: Use the database created using orderprocessing.sql Download orderprocessing.sqland create SQL statements for the following. 1 . Display a list of customer names who's orders have
Use the database created using orderprocessing.sql Download orderprocessing.sqland create SQL statements for the following.
Display a list of customer names who's orders have shipped one day after the order was placed. Your result should have rows Update : This should be rows
Display the names of customers that have requested "FedEx Ground" for shipping. Hint: Examine the order data for this
Calculate the total value of all orders placed by customers outside the USA. Round the value to the nearest dollar amount.
Display the names of California based customers that have placed orders for products in the Vintage Cars product line. Your result will have names
Display the total number of employees in Sales in all the offices located in USA. Your result will have rows You may display the total number of employees or list the employees
Display the names of the employee and their manager. The result must be sorted by Manager's last name. The names for each must be first and last names as a single value. Provide aliases for the columns. Your result will have rows.
Bonus: points
Write a series of statements that will determine if there are more sales positions in US offices or outside US
First, find the count of sales department employees in the USA. Assign that to a variable
Second,find the count of sales department employees outside the USA. Assign that to a variable
Compare the two resulting values and display either USA or OTHERS based on the outcome of the comparison
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
