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
topjm [15]
3 years ago
9

Write a SELECT statement that returns these column names and data from the Products table: product_name The product_name column

list_price The list_price column discount_percent The discount_percent column discount_amount A column that’s calculated from the previous two columns discount_price A column that’s calculated from the previous three columns Round the discount_amount and discount_price columns to 2 decimal places. Sort the result set by the discount_price column in descending sequence. Use the LIMIT clause so the result set contains only the first 5 rows.
Engineering
1 answer:
I am Lyosha [343]3 years ago
5 0

Answer:

 SELECT  

   product_name, list_price, discount_percent,    

   ROUND(list_price * (discount_percent / 100), 2) AS discount_amount,

   ROUND(list_price - (discount_percent / 100 * list_price), 2)  AS discount_price  

FROM

Products

ORDER BY (list_price - (discount_percent / 100 * list_price)) DESC

LIMIT 5;

Explanation:

In the above SELECT statement is used to select columns from Products table.

The columns are  product_name,list_price and discount_percent

Next a column discount_amount is selected which is the calculated from previous two columns that are list_price and discount_percent. The discount amount is basically calculated by multiplying list_price with discount_percent/100 and the resultant column is named as discount_amount using Alias which is used to give a temporary name to set of columns or a table.

Next another column discount_price is obtained from previous three columns that are  list_price , discount_percent and discount_amount as: list_price - (discount_percent / 100 * list_price) This as a whole is given a column name discount_price.

FROM is used to refer to a table from which these columns are to be selected. The table name is Product.

The result set is sorted in descending order by discount_price so ORDER BY is used to order the resultant records and DESC is used to sort these records according to the discount_price in descending order.

LIMIT statement is used to extract the records from Product and limit the number of rows returned as a result based on a limit value which is 5 here.

You might be interested in
11) (10 points) A large valve is to be used to control water supply in large conduits. Model tests are to be done to determine h
IrinaVladis [17]

Answer:

7.94 ft^3/ s.

Explanation:

So, we are given that the '''model will be 1/6 scale (the modeled valve will be 1/6 the size of the prototype valve)'' and the prototype flow rate is to be 700 ft3 /s. Then, we are asked to look for or calculate or determine the value for the model flow rate.

Note that we are to use Reynolds scaling for the velocity as par the instruction from the question above.

Therefore; kp/ks = 1/6.

Hs= 700 ft3 /s and the formula for the Reynolds scaling => Hp/Hs = (kp/ks)^2.5.

Reynolds scaling==> Hp/ 700 = (1/6)^2.5.

= 7.94 ft^3/ s

7 0
3 years ago
What type of cartilage provides support and shock absorption?.
Katena32 [7]

Answer:

fibrocartilage

7 0
2 years ago
A piece of aluminum wire is 500 ft long and has a diameter of 0.03 inches. What is the resistance of the piece of wire?​
dexar [7]

Answer:

8.85 Ω

Explanation:

Resistance of a wire is:

R = ρL/A

where ρ is resistivity of the material,

L is the length of the wire,

and A is the cross sectional area.

For a round wire, A = πr² = ¼πd².

For aluminum, ρ is 2.65×10⁻⁸ Ωm, or 8.69×10⁻⁸ Ωft.

Given L = 500 ft and d = 0.03 in = 0.0025 ft:

R = (8.69×10⁻⁸ Ωft) (500 ft) / (¼π (0.0025 ft)²)

R = 8.85 Ω

5 0
3 years ago
A 3-phase , 1MVA, 13.8kV/4160V, 60 Hz, transformer with Y-Delta winding connection is supplying a3-phase, 0.75 p.u. load on the
Tanya [424]

Answer:

a) 23.89 < -25.84 Ω

b) 31.38 < 25.84 A

c) 0.9323 leading

Explanation:

A) Calculate the load Impedance

current on load side = 0.75 p.u

power factor angle = 25.84

I_{load} = 0.75 < 25.84°

attached below is the remaining part of the solution

<u>B) Find the input current on the primary side in real units </u>

load current in primary = 31.38 < 25.84 A

<u>C) find the input power factor </u>

power factor = 0.9323 leading

<em></em>

<em>attached below is the detailed solution </em>

8 0
2 years ago
BTSAUDY5 NAME STARTS FROM THIS
otez555 [7]

Answer:

What's your question?

Explanation:

I'm not able to understand it....

Sorry.

7 0
2 years ago
Read 2 more answers
Other questions:
  • What is the difference between absolute and gage pressure?
    11·1 answer
  • Volume of sale (i.e., the number of parts sold) is a factorwhen determining which
    8·1 answer
  • Benzoic acid 1.35 g, is reacted with oxygen in a constant volumecalorimeter to form H2 O(l) and CO2 (g)at 298 K. the mass of the
    7·1 answer
  • A 350 m^3 retention pond that holds rainwater from a shopping mall is empty at the beginning of a rainstorm. The flow rate out o
    7·1 answer
  • Digital leaders are people who __ others down a particular path.
    13·2 answers
  • Multiple Choice
    10·1 answer
  • Technician A says when the brakes are applied in a vacuum booster, the vacuum control valve is closed. Technician B says the vac
    7·1 answer
  • List six clues that indicates that you are approaching an intersection
    10·1 answer
  • Suppose a contract states that the designer should bear the responsibility if substantial differences were found between the des
    13·1 answer
  • "Transformer is used to change the voltage".
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!