Determine the highest producing employee

Assignment Help Basic Computer Science
Reference no: EM13997214

#1) Number of Orders with Credit Card Payment
Write a SQL statement that will count the number of orders in the [Order Details] table that were paid by credit card.

Example:
SELECT [field], count(1)
FROM [table]
WHERE [field] = "value"
GROUP BY [field]

<Paste SQL Statement Here>
<Insert Result Image Here>

#2) Top Selling Product based on Order Amount (One Join)
Write a SQL statement that will join the [Order Details ] table and [Products] table to determine the top selling product based on [Quantity]*[Unit Price].
Example:
SELECT B.[field], sum(A.[field]*A.[field]) as Orders
FROM ( [table] A
INNER JOIN [table] B
on A.[field] = B.[field] )
GROUP BY B.[field]
ORDER BY sum(A.[field] *A.[field] ) desc

<Paste SQL Statement Here>
<Insert Result Image Here>

#3) Products with Less Than $2500 in Orders
Write a SQL statement that will join the [Order Details] table and [Products] table to determine only those products with less than $2500 in Orders based on [Quantity]*[Unit Price].
Example:
SELECT B.[field], sum(A.[field] * A.[field]) as Orders
FROM ([table] A
INNER JOIN [table] B
on A.[field] = B.[field])
GROUP BY B.[field]
HAVING sum(A.[field]*A.[field]) < value
ORDER BY sum(A.[field] *A.[field]) desc

<Paste SQL Statement Here>
<Insert Result Image Here>

#4) Top Producing Employee base on Order Amount (Two Joins)
Write a SQL statement that will join the [Orders] table, [Order Details] table and [Employees] table to determine the highest producing employee based on the employees first name and [Quantity]*[Unit Price].

Example:
SELECT C.[field], sum(A.[field] *A.[field] ) as Orders
FROM (([table] A
INNER JOIN [table] B
on A.[field] = B.[field])
INNER JOIN [table] C
on B.[field] = C.[field])
GROUP BY C.[field]
ORDER BY sum(A.[field] *A.[field] ) desc

<Paste SQL Statement Here>
<Insert Result Image Here

Reference no: EM13997214

Questions Cloud

What is the speed boats final speed : A speedboat moves on a lake with initial velocity vector v1,x = 9.81 m/s and v1,y = -2.61 m/s, then accelerates for 6.81 seconds at an average acceleration of avgx = -0.103 m/s2 and aav,y = 0.106 m/s2. What are the components of the speedboat's f..
Theories of natural law theory and social contract theory : Compare/contrast the theories of utilitarianism and categorical imperative. Compare/contrast the theories of natural law theory and social contract theory
Find the minimum value of the boat speed : A speedboat can travel with a speed of 55 m/s in still water. If the boat is in a river that has a flow speed of 5 m/s , find the maximum value of the boat's speed relative to an observer on the riverbank.
What is the frequency of the train whistle tone : A train is approaching a signal tower at a speed of 40 m/s. The train engineer sounds the 1000-Hz whistle. What is the frequency of the train whistle tone that is heard by the switchman?
Determine the highest producing employee : Write a SQL statement that will join the [Order Details] table and [Products] table to determine only those products with less than $2500 in Orders based on [Quantity]*[Unit Price].
What is the total charge q of the sphere : A sphere of radius a=6cm carries a uniform charge density ρ=450nC/m^3. what is the total charge Q of the sphere. Using Gauss's law find the electrical feld inside the sphere at a distance r=2cm from the center of the sphere.
Calculate potential as a function of r from center of sphere : A sphere of radius R has a radius dependent charge density ρ = B . r3 in terms of R and B. Calculate the potential as a function of r from the center of the sphere.
What is the electric field and potential at a distance x : A sphere of radius R and total charge Q is drilled into so that it is hollowed out vertically (along the z-axis) with a cylindrical space of radius a (where a
Find the total energy stored in the field : A spherical capacitor consists of a single conducting sphere of radius R = 14 cm that carries a positive charge Q = 35 nC. The capacitance for this spherical capacitor is given by the equation C = 4Πε0R. Write an equation for the energy stored in..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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