1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rina8888 [55]
3 years ago
13

Write a SELECT statement that returns one row for each customer that has orders with these columns: The email_address from the C

ustomers table
A count of the number of orders

The total amount for each order

(Hint: First, subtract the discount amount from the price. Then, multiply by the quantity.) Return only those rows where the customer has more than 1 order. Sort the result set in descending sequence by the total amount . Hint: You will join three tables together. Returns 3rows of data.

Questions done up until #4: https://pastebin.com/LwSKknPi

all questions before and after:

Write a SELECT statement that returns these columns:

The count of the number of orders in the Orders table

The sum of the tax_amount columns in the Orders table

Returns 1 row of data.

Write a SELECT statement that returns one row for each category that has products with these columns:

The category_name column from the Categories table

The count of the products in the Products table

The list price of the most expensive product in the Products table

Sort the result set so the category with the most products appears first.

Hint: You will join two tables together. Returns 3 rows of data.

Write a SELECT statement that returns one row for each customer that has orders with these columns:

The email_address column from the Customers table

The sum of the item price in the Order_Items table multiplied by the quantity in the Order_Items table

The sum of the discount amount column in the Order_Items table multiplied by the quantity in the Order_Items table

Sort the result set in descending sequence by the item price total for each customer.

Hint: You will join three tables together. Returns 7 rows of data.

Modify the solution to exercise 4 so it only counts and totals line items that have an item_price value that’s greater than 400. Returns 2 rows of data.

Write a SELECT statement that answers this question: What is the total amount ordered for each product? Return these columns:

The product name from the Products table

The total amount for each product in the Order_Items (Hint: You can calculate the total amount by subtracting the discount amount from the item price and then multiplying it by the quantity)

Use the WITH ROLLUP operator to include a row that gives the grand total.

Hint: You will join two tables together. Returns 10 rows of data.

Write a SELECT statement that answers this question: Which customers have ordered more than one product? Return these columns:

The email address from the Customers table

The count of distinct products from the customer’s orders

Hint: You will join three tables together. . Returns 3 rows of
Computers and Technology
1 answer:
bazaltina [42]3 years ago
7 0

Answer:

Please find the attachment files of the queries:

Explanation:

In the all queries the select statement is used that selects the defined columns and use the function like sum, join, orderby, and groupby to perform the various operations, in which the sum is used to add columns or rows values, join is used for joining two or more tables, and orderby is used for return the table into ascending or descending order, and groupby is used for the count the value, calculate average and perform other operation and gives its return value.

You might be interested in
Ali is creating a document on a system using his login credentials. His colleague needs to use his system to access documents. H
svp [43]

Answer:I am thinking C

Explanation:

If he can multi-task he could ask his colleague for their computer and then when his colleague is done with his computer he could send the document to his computer and then delete it from his colleagues computer.

8 0
3 years ago
after installing a secondary hard drive what needs to be done to the hard drive and what do these two task do?
elena55 [62]
HEY heheh ehehhegeeh
3 0
4 years ago
Fill in the blank. The process that a wireless router uses to translate a private IP address on internal traffic to a routable a
AleksandrR [38]

Answer:

Network Address Translation (NAT)

Explanation:

With the aid of Network address translation(NAT), the IP addresses of a particular local network are translated or mapped into a single or multiple global or public IP addresses. Therefore, a wireless router could use NAT to translate its private IP address on internal traffic (network) to a routable address for the internet.

With NAT, businesses can use many internal IP addresses since they are just for internal purposes and will be eventually converted into a single or a few multiple routable IP addresses.

Three types of NAT are possible:

(i) Static NAT : There is a one - to - one mapping between private IP addresses and routable (public) IP addresses. One private IP is mapped to one public IP address.

(ii) Dynamic NAT : There is a many- to - many mapping between private IP addresses and routable (public) IP addresses. Multiple private IPs are mapped to many public IP addresses.

(iii) Port Address Translation (PAT) : Many - to - one relationship between the private IP addresses and public addresses. Many private IP addresses can be mapped or translated into a single public IP address. This type of NAT is also called NAT overload.

6 0
4 years ago
Suppose your SOHO network connects to the Internet using cable modem. When you open your browser and try to access a web site, y
pantera1 [17]

Answer:

a) you must identify your operating system. Follow the instructions of your operating system.

b) Delete the browsing history in Internet Explorer, follow these steps:

Start Internet Explorer from the desktop.

Press Alt to display the menu bar.

On the Tools menu, click Internet Options.

Select all the checkboxes then click Remove.

Explanation:

Restart Internet Explorer and try it.

5 0
4 years ago
Order the steps for using the Rules Wizard to create an email rule.
Serhud [2]

Answer:

select the home tab and click rules button

select manage rules and alerts

click new rule and select a template

edit a description of the rule by adding values

make any exceptions and name the rule

Explanation:

just took it on edg

6 0
3 years ago
Other questions:
  • A good place to get hints about how to answer a response question could be a. Your teacher c. Both of these b. The rest of the t
    13·2 answers
  • What keyboard shortcut keys selects cell A1
    12·1 answer
  • A network host with an IP address of 192.168.10.200 wants to send a message to a destination computer with an assigned IP addres
    6·1 answer
  • What information and options can be found on the File tab?
    8·1 answer
  • A(n) ____________ for a computer program is a set of steps that explains how to begin with known information specified in a prob
    5·1 answer
  • Which attribute defines the file name for the specific image in an image tag??
    13·1 answer
  • How to do this question , please answer quickly , I’ll give branliest
    14·1 answer
  • Why a commerce student must learn about SDLC (Software Development Life Cycle) and its phases?
    12·1 answer
  • When the condition of an if statement is false, the computer will return an error message to the user.
    15·2 answers
  • How many accelerometers are there in an IRS system?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!