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

  Assignment of sql queries

Design a query to find out details of CustomerNo, first name , last name who have paid amount more than the average amount paid by all customers.

  Specify the sql queries to retrieve a list of all doctors

Specify the SQL queries to retrieve A list of all doctors and the number of patients that were born before 01/01/1994.

  In this problem we will consider a movie database with

in this problem we will consider a movie database with three tablesmoviedirectortitle director yearmoviecasttitle actor

  How does the order of joins in an sql statement

How does the order of joins in an SQL statement affect the performance of the join and what can the DBA do to determine the preferred order of joins for an SQL statement that includes the join of at least three tables?

  Write a sql query that returns the names of the students

Write a SQL query that returns the names of the students (lname, fname), and the major of the major with most students. If more than one major is tied for most students, then list all the names of the students from both majors (as well as the major..

  Stored procedure named spinsertcategory

Write a script that creates and calls a stored procedure named spInsertCategory. First, code a statement that creates a procedure that adds a new row to the Categories table. To do that

  Find the most classes taken by students

Find the students by student ID who have taken the most class (counted by enrolled students) and not counting where an ‘F' was the grade - Find the facility by facility id who teach math class.

  Write a pl-sql block to select the name of the employee

Write a PL/SQL block to select the name of the employee with a given salary value. You will be using the MESSAGES table that was created for a previous assignment.

  Pl-sql block to display last name and salary

Write a PL/SQL block that displays the last name and salary of the following people. Each of these can be done separately as PL/SQL, first to test and get the output lines then encapsulated.

  Features of a relational dbms

1. A well-maintained relational DBMS has a high level of data integrity. What features of a relational DBMS contribute towards this level of integrity?

  Database analysis and design

Implement the initial database design for the Customer Relationship Management VIEW as described below in your selected RDBMS. You need to create the Entity-Relationship model from your normalization and Database analysis, define tables, primary k..

  Prepare sql queries to find the customers

Prepare SQL queries to find the customers who have reserved only 4-door cars.

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