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
SVEN [57.7K]
3 years ago
11

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

m the Customers 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 sum of the line item amounts
Engineering
1 answer:
Dafna11 [192]3 years ago
8 0

Answer:

The statement is as follows:

Explanation:

We had better avoid such correlated subqueries by instead using aggregation with GROUP BY:

SELECT

   c.email_address,

   COUNT(DISTINCT o.order_id) AS num_orders,

   COALESCE(SUM(oi.quantity * (oi.item_price - oi.discount_amount)), 0) AS total_amount

FROM customers c

LEFT JOIN orders o

   ON c.customer_id = o.customer_id

INNER JOIN order_items oi

   ON o.order_id = oi.order_id

GROUP BY

   c.customer_id,

   c.email_address;

You might be interested in
Derive the expression ε=ln(1+e), where ε is the true strain and e is the engineering strain. Note that this expression is not va
Rudiy27

The formula for true strain after derivation from basic terms is; ε_t = In(1 + ε_e)

<h3>How to derive the expression for True Strain?</h3>

Formula for Engineering Stress is;

σ_e = Load/Area

Formula for true stress is;

σ_t = Force/Instantaneous Area

Formula for Engineering Strain is;

ε_e = ΔL/L₀

Formula for true strain is;

dε_t = dL/L

Total true strain is gotten from;

ε_t = ∫(dL/L) between boundaries of L_f and L_o

When we integrate between those boundaries, we have;

ε_t = In[(L₀ + ΔL)/L₀

⇒ ε_t = In[(1+ ΔL/L₀)

⇒ ε_t = In(1 + ε_e)

Read more about True Strain at; brainly.com/question/20717759

#SPJ1

6 0
2 years ago
The acrylic plastic rod is 200 mm long and 15 mm in diameter. If an axial load of 300 N is applied to it, determine the change i
ehidna [41]

Answer:

Change in length = 0.1257 mm

Change in diameter= -0.03771mm

Explanation:

Given

Diameter, d = 15 mm

Length of rod, L = 200mm

F = Force= 300N

d = 0.015m

Ep=2.70 GPa, np=0.4.

First, we have to calculate the normal stress using

σ = F/A where F = Force acting on the Cross-sectional area

A = Area

Area is calculated as πd²/4 where d = 0.015m

A = 22/7 * 0.015²/4

A = 0.000176785714285m²

A = 1.768E-4m²

So, stress. σ = 300N/1.768E-4m²

σ = 1696832.579185520Pa

σ = 1.697MPa

Calculating E(long)

E(long) = σ /Ep

E(long) = 1.697E-3/2.70

E(long) = 0.0006285

At this point, we fan now calculate the change in length of the element;

∆L = E(long) * L

∆L = 0.0006285 * 200mm

∆L = 0.1257mm

Calculating E(lat)

E(lat) = -np * E(long)

E(lat) = -4 * 0.0006285

E(lat) = -0.002514

At this point, we can now calculate the change in diameter of the element;

∆D = E(lat) * D

∆L = -0.002514 * 15mm

∆L = -0.03771mm

8 0
3 years ago
Which welding processes normally use a constant current power source? (Select all that apply) PLEASE HELP​
Furkat [3]

Answer:

Explanation:

GTAW AND GMAW

5 0
3 years ago
In successive an object moves from start position, then moves 1ft, 4ft and 8ft. This is an example of a. non-uniform motion b. u
Nikolay [14]

Answer:Non-uniform motion

Explanation:

This is an example of Non-uniform motion because unequal distance traveled by an object in equal interval of time is termed as Non-Uniform motion and here also the distance traveled by object is 1 ft ,4 ft and 8 ft which is different from each other.

In Uniform motion distance traveled is equal in equal interval of time .

6 0
3 years ago
¿Qué son alimentos funcionales?
Mnenie [13.5K]
DescripciónAlimentos funcionales son aquellos alimentos que son elaborados no solo por sus características nutricionales sino también para cumplir una función específica como puede ser el mejorar la salud y reducir el riesgo de contraer enfermedades
4 0
3 years ago
Other questions:
  • Which option should the engineers focus on as they develop the train in the following scenario?
    12·1 answer
  • The purpose of adjusting your mirrors is to _________.
    6·1 answer
  • A 356 cast aluminum test bar is tested in tension. The initial gage length as marked on the sample is 50mm and the initial diame
    9·1 answer
  • An integrated circuit is a set of microscopic electronic circuits etched onto a thin slice of ________ material such as silicon.
    7·1 answer
  • Ayo, how do I change my username on here?
    6·1 answer
  • LET'S DO THIS! Here are the directions whoever answers first will get the brainliest! I Promise!
    12·1 answer
  • Quien mira WWE.<br>Respondan!​
    10·1 answer
  • Which of the following is the BEST definition for e-commerce? *
    13·1 answer
  • Engineers are problem who use critical thinking to create new solutions.
    13·1 answer
  • What are some ways you can design a working future notebook that writes for you when you speak
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!