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

  To perform queries

To perform queries on a relational database system using SQL? To demonstrate an advanced knowledge of stored procedures, stored functions and triggers.

  Call a unary language an arithmetic progression

Call a unary language an arithmetic progression if it is the set { x^(m+ni) } : i >= 0 for some m and n demonstrate that if a unary language is regular , then it is the union of a finite set and a finite number of arithmetic progressions

  Cryptography for standardized regulated and mandated

Whose interests are most significant when finding extent to which cryptography must be standardized, regulated, and mandated?

  How is targeted advertising done wirelessly

How is targeted advertising done wirelessly

  Write the code that reads an integer number called test

Write the code that reads values for a,b,c and displays their sum, repeating this process as long as none of the three values are negative.

  Select three imaging tools and explain their functions

Choose three imaging tools and describe their functions, including those of their subtools. Provide examples of how these tools might be used to enhance your professional or personal photos.

  Modify solution and categorize it using big-theta notation

Sometimes a slight change in the problem can significantly modify form of its solution. For instance, determine simple algorithm for solving following problem and categorize it using big-theta notation.

  Design a class numbers

Design a class Numbers that can be used to translate whole dollar amounts in the range 0 through 9999 into an English description of the number.

  The k-nearest neighbour and naïve bayes algorithms

In this assignment you will implement the K-Nearest Neighbour and Naïve Bayes algorithms and evaluate them on a real dataset using the stratified cross validation method.

  Describe a dbms and its functions updated dbms technology

Describe a DBMS and its functions. Name some of the popular DBMS software? You should search the Internet for the updated DBMS technology.

  Presenter notes section of the presentation

Note: The slides in your presentation should include only the main points you wish to make, with more extensive information included in the presenter notes section of the presentation.

  Consider the implications for private individuals

You are required to research and discuss how the "Right to be forgotten" ruling (C131/12) may affect the quality of information shared on the Internet. Build and publish a website to illustrate and draw out your findings.

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