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
abruzzese [7]
3 years ago
6

The purpose of this assignment is to design and implement queries that will assist in developing answers to business problems. F

or this assignment, continue to operate in the role of a data analyst at Adventure Works Cycles company. Based upon "LL Road Frame-Black 60" scenario and questions formulated for the Topic 3 assignment, write queries for the "AdventureWorks 2016" database using SQL Server 2016 Developer Edition. Please note that when SQL queries are run, results are generated in the form of data. This data should be exported and saved to Excel for a visual check of accuracy. Create a Word document that includes the SQL queries used to explore the database tables, and answer the following questions.
Find the product ID for the LL Road Frame – Black 60.

Find the listing price of the LL Road Frame – Black 60.

How would you rewrite the query used in question 2 to exclude NULL values?

How many orders have been placed for LL Road Frame – Black 60?

Rename the OrderQty to Quantity in your results.
Engineering
1 answer:
san4es73 [151]3 years ago
8 0

Answer:

Below are the SQL queries on AdventureWorks database-

1) Production.Product table is used to get ProductID of LL Road Frame – Black 60.

SELECT pp.ProductID

FROM Production.Product AS pp

WHERE pp.Name = 'LL Road Frame - Black 60';

2) ListPrice from table Production.Product table is listed here.

SELECT pp.ListPrice

FROM Production.Product AS pp

WHERE pp.Name = 'LL Road Frame - Black 60';

3) Same as above except one condition is added to WHERE clause to filter those listPrice without null values.

SELECT pp.ListPrice

FROM Production.Product AS pp

WHERE pp.Name = 'LL Road Frame - Black 60'

AND pp.ListPrice IS NOT NULL;

4) Aggregate function COUNT is used here to get the total order quantity of product LL Road Frame – Black 60.

SELECT COUNT(od.SalesOrderDetailID) AS OrderQty

FROM Production.Product AS pp

INNER JOIN Sales.SalesOrderDetail AS od

ON od.ProductID = pp.ProductID

WHERE pp.Name = 'LL Road Frame - Black 60';

You might be interested in
Where are the ar manufacturers not fitting the engine in the high end sport cars
fomenos

Answer:

it depends on the but i would recommend check in the front next to the turbo intake.

8 0
3 years ago
Any help is appreciated <3
Len [333]

Answer:

forwarder

Explanation:

8 0
3 years ago
A body weighs 50 N and hangs from a spring with spring constant of 50 N/m. A dashpot is attached to the body. If the body is rai
lbvjy [14]

Answer:

a) 3.607 m

b) 1.5963 m

Explanation:

See that attached pictures for explanation.

3 0
3 years ago
Ethylene glycol, the ingredient in antifreeze, does not cause health problems because it is a clear liquid.
netineya [11]
B. false

Explanation: because it is
5 0
3 years ago
Water is boiled in a pot covered with a loosely fitting lid at a location where the pressure is 85.4 kPa. A 2.61 kW resistance h
eimsori [14]

Answer:

t = 6179.1 s = 102.9 min = 1.7 h

Explanation:

The energy provided by the resistance heater must be equal to the energy required to boil the water:

E = ΔQ

ηPt = mH

where.

η = efficiency = 84.5 % = 0.845

P = Power = 2.61 KW = 2610 W

t = time = ?

m = mass of water = 6.03 kg

H = Latent heat of vaporization of water = 2.26 x 10⁶ J/kg

Therefore,

(0.845)(2610 W)t = (6.03 kg)(2.26 x 10⁶ J/kg)

t = \frac{1.362\ x\ 10^7\ J}{2205.45\ W}

<u>t = 6179.1 s = 102.9 min = 1.7 h</u>

4 0
3 years ago
Other questions:
  • Water circulates throughout a house in a hot water heating system. If the water is pumped at a speed of 0.50m/s through a 4.0-cm
    5·1 answer
  • A rectangular channel 2 m wide carries 3 m3 /s of water at a depth of 1.2 m. If an obstruction 40 cm wide is placed in the middl
    12·1 answer
  • The market for college textbooks is illustrated in the graph below. In the market for textbooks, the current price of a textbook
    11·1 answer
  • What should you do before you start welding?
    9·1 answer
  • Determine the minimum required wire radius assuming a factor of safety of 3 and a yield strength of 1500 MPa.
    15·1 answer
  • Three spheres are subjected to a hydraulic stress. The pressure on spheres 1 and 2 is the same, and they are made of the same ma
    8·1 answer
  • What car has autopilot?
    14·2 answers
  • A driver is traveling at 90 km/h down a 3% grade on good, wet pavement. An accident
    11·1 answer
  • Explain the use of a vacuum gauge.
    15·1 answer
  • Which of the following is NOT one of the 3 technology bets we have made?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!