Write a sql statement that will count the number of orders

Assignment Help PL-SQL Programming
Reference no: EM13976697

Using Microsoft Access and the Northwind sample database, produce an SQL statement for each of the 4 exercises below. For each exercise you should submit both the SQL statement you have written along with a screen shot of the results.

*Important - Do Not Use the Query Wizard as these are exercises in learning to write SQL. It will be apparent in the syntax if you completed the assignment with the Query Wizard. Please practice honesty and integrity as you complete the assignment.

#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.

 

#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].

 #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].

 

#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].

Reference no: EM13976697

Questions Cloud

Calculate the rate at which firm can grow without changing : Calculate the rate at which a firm can grow without changing its leverage if its payout ratio is 75%, equity outstanding at the beginning of the year is $970,000, and its net income for the year is $157,000. What is the WACC for a firm with 45% debt ..
Description of quantitative methods : Description of quantitative method(s). Justify why you utilized this statistical method for your study. Analysis of the data (Discuss your results and include a separate sheet that shows your quantitative results in tabular or graphical form)
Find the magnitude of the net electric field charges produce : Find the magnitude of the net electric field these charges produce at point A. In N/C. What would be the magnitude of the electric force this combination of charges would produce on a proton at A? In N
Acquire a small ice cream cart : It will cost $3,500 to acquire a small ice cream cart. Cart sales are expected to be $2,700 a year for four years. After the four years, the cart is expected to be worthless as that is the expected remaining life of the cooling system. What is the pa..
Write a sql statement that will count the number of orders : 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].
Compare the depreciation-amortization and depletion : For this discussion, assume that you are the chief financial officer for your organization and that you are preparing the organization's financial statement footnotes. What are the acceptable inventory valuation methods under U.S. GAAP? How does each..
Do you agree with thomas paine that government is necessary : "Society in every state is a blessing, but government even in its best state is but a necessary evil; in its worst state an intolerable one; for when we suffer, or are exposed to the same miseries by a government, Do you agree with Thomas Paine th..
The projected net income from the project : A project has an initial cost of $50,000 and a four-year life. The company uses straight-line depreciation to a book value of zero over the life of the project. The projected net income from the project is $1,800, $3,800, $4,400, and $4,500 a year fo..
The majority of an established firms capital : The majority of an established firm's capital is generated: When sales are made without the accompaniment of a formal debt contract, the sales are said to be on:

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Write a perl subroutine for temperature conversion

Write a perl subroutine for temperature conversion named ' convert_temp '. It should be able to handle both Fahrenheit to Celsius conversions as well as Celsius to Fahrenheit conversions.

  Consider the following set of database tables the diagram

consider the following set of database tables. the diagram shows a database made up of 6 tables with all primary keys

  Write select statement to return those rows with due balance

Write SELECT statement which returns those rows with the balance due greater than 1000. Sort result set by InvoiceTotal, with largest invoice first.

  Write a trigger and two test sql statements

Write a trigger and two test sql statements. The first statement should succeed and the second statement should fail (i.e., the second statement violates the constraint and your trigger must block it and issue an error message).

  Write a select statement that returns

Write a Select statement that returns four columns from the Invoices table, named Number, Total, Credits, and Balance

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Test and compile the sql queries

The Strayer Oracle Server may be used to test and compile the SQL Queries developed for this assignment. Your instructor will provide you with login credentials to a Strayer University maintained Oracle server.

  Implement the tables in oracles 11g relational database

Explain the security mechanisms available for a database and how the data will be protected.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

  Point totals by race level listing

List the Rider's Name, RaceLevel as Race_Level and the total number of all points based on their placement. Make sure that you don't list any riders who have not raced in any races yet (not placed yet).

  What selection criteria are used

Which fields are displayed in the query results

  Create a view named productsummary

Create a view named ProductSummary that uses the view you created in exercise 4. This view should return some summary information about each product.

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