Which department is associated with the lowest revenue

Assignment Help Computer Engineering
Reference no: EM132198868

Write the following sql queries using the Cape Codd DB.

1. Write a SQL statement to show sku and Description for all products having a SKU description that includes the word ‘foot'.

2. Write a SQL statement to display the warehouse and a count of QuantityOnHand grouped by warehouse.

3. Write a SQL statement to show the SKU and SKU_Description for all items stored in a warehouse managed by each manager.

4. Find out the total revenue collected by each store.

5. Which department is associated with the highest revenue?

6. Which department is associated with the lowest revenue?

7. Find out the storenumber and zipcode of the store that sold the maximum number of products.

8. Find out other warehouses whose average quantity on hand is not smaller than That of Atlanta warehouse.

9. List sku's and descriptions for all products whose sku starts with a "2". Use the BETWEEN operator. You may assume all sku's have 6 digits.

10. List the warehouses that currently have on average less than 225 items in stock of the products they carry. Use the HAVING operator.

11. List all order items for products currently out of stock in Atlanta. Use a subquery.

12. Get a list of buyers and their departments for any products out of stock (at any warehouse, not all warehouses). Use a join.

13. Get a list of departments and the total items on order for each department, sorted from largest to smallest quantity.

Use a join. Use the PC Manufacturer sample DB to write these additional queries as well as relational algebra expression.

1. Find the model number and price of all products (of any type) made by maker B.

2. Find those makers that sell laptops, not PCs.

3. Find those makers of at least two different computers. All queries should be contained in a single plain text file with a sql extension. Queries must be in the order above. Don't forget to separate each query with a semi-colon. Write the following sql queries using the Cape Codd DB.

1. Write a SQL statement to show sku and Description for all products having a SKU description that includes the word ‘foot'.

2. Write a SQL statement to display the warehouse and a count of QuantityOnHand grouped by warehouse.

3. Write a SQL statement to show the SKU and SKU_Description for all items stored in a warehouse managed by each manager.

4. Find out the total revenue collected by each store.

5. Which department is associated with the highest revenue?

6. Which department is associated with the lowest revenue?

7. Find out the storenumber and zipcode of the store that sold the maximum number of products.

8. Find out other warehouses whose average quantity on hand is not smaller than That of Atlanta warehouse.

9. List sku's and descriptions for all products whose sku starts with a "2". Use the BETWEEN operator. You may assume all sku's have 6 digits.

10. List the warehouses that currently have on average less than 225 items in stock of the products they carry. Use the HAVING operator.

11. List all order items for products currently out of stock in Atlanta. Use a subquery.

12. Get a list of buyers and their departments for any products out of stock (at any warehouse, not all warehouses). Use a join.

13. Get a list of departments and the total items on order for each department, sorted from largest to smallest quantity. Use a join. Use the PC Manufacturer sample DB to write these additional queries as well as relational algebra expression.

1. Find the model number and price of all products (of any type) made by maker B.

2. Find those makers that sell laptops, not PCs.

3. Find those makers of at least two different computers. All queries should be contained in a single plain text file with a sql extension. Queries must be in the order above. Don't forget to separate each query with a semi-colon.

Reference no: EM132198868

Questions Cloud

Find all pairs of students taking the same courses : Find the major in which the most students have more than one class with a given professor. Find all pairs of students taking the same courses.
Propose a form of command and control intervention : Propose a form of command and control intervention to correct this externalityor explain one that already exists.
A function that removes all occurrences of the integer : A function (myRemove num list) that removes all occurrences of the integer num from a simple list of integers, returning list with num removed.
Write code to demonstrate your function on various inputs : A function (addBinary binaryList) that takes a list of binary numbers and returns their decimal sum. (addBinary '(1101 111 10 101)) returns 27.
Which department is associated with the lowest revenue : Find out other warehouses whose average quantity on hand is not smaller than That of Atlanta warehouse.
Plot the year-over-year growth rate : In a seperate graph, plot the Year-Over-Year growth rate of M2, M2++ and the Year-Over-Year Growth Rate of CPI. for the period of 2008 to 2018.
Definition of the keynesian multiplier : According to the definition of the Keynesian multiplier, an economy with $10 in investment
A constructor that has an const unsigned int parameter : A constructor that has an const unsigned int parameter. This constructor needs to dynamically allocate an array of the size passed into the parameter.
How the strings are stored in a byte-addressable memory : Show how the strings are stored in a byte-addressable memory on a little-endian machine starting at memory address 0x00001050C.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Wireless topology paper

Wireless Topology Paper - Wireless communication, generally, useless three configuration topologies point to point; point to multipoint

  Describe three tools that can aid in the replication process

Describe and detail three tools that can aid in the replication process. List and describe some of the best practices for Active Directory Replication.

  Write a program with a graphical interface

Write a program with a graphical interface that allows the user to convert an amount of money between U.S. dollars (USD), Euros (EUR), and British pounds (GBP).

  Create a minimax function that evaluates the best possible

Create a minimax function that evaluates the best possible move for depth of 5, where AI moves want to be maximized and USER moves want to be mimized.

  What information is define by multiplicity on an association

What information is shown by multiplicity on an association end. I want to provide an example demonstrating my explanation that does not come from the ATM example.

  Who are idling from the man documentation of who

What is a pager? Name the two standard pagers used by man. How do you find out the users who are idling from the man documentation of who?

  What medium would you recommend and why

GJ Enterprises has hired you as a productivity consultant. What medium would you recommend, and why?

  What new technologies are being develop in computer industry

What new technologies are being developed in the computer industry and how can those technologies be utilized for business and process analysis?

  What do you know about operator precedence

what do you know about operator precedence.

  Discuss some methods of communication for small business

Discuss some methods of communication for small business networks accessing the Internet.

  Describe software construction

Describe software construction

  Credit scorecards are used by banks and financial

credit scorecards are used by banks and financial institutions to determine whether applicants will receive loans. the

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd