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
stellarik [79]
4 years ago
9

Write a SELECT statement that returns the same result set as this SELECT statement, but don’t use a join. Instead, use a subquer

y in a WHERE clause that uses the IN keyword. SELECT DISTINCT category_name
Engineering
1 answer:
Bess [88]4 years ago
4 0

Answer:

See explanation

Explanation:

The complete question is

Write a SELECT statement that returns the same result set as this SELECT statement, but don't use a

join. Instead, use a subquery in a WHERE clause that uses the IN keyword.

SELECT DISTINCT category_name

FROM categories c JOIN products p

ON c.category_id = p.category_id

ORDER BY category_name

The join clause  gives us all the registers of both tables, for which the category_id of categories coincides to  the category_id in the table products. That is, we can first select the distinct category_id's from products and the see the categories from categories table, whose id is in that list. That means writing the following query:

Select distinct category_name

from categories c

where c.category_id in (

select distinct p.category_id

from products p)

order by category_name

You might be interested in
“We have to redo the deck we built last week,” Bennett tells his coworkers. “I just tested it, and it doesn’t hold the minimum w
PIT_PIT [208]

Answer:

Consumer-driven

Explanation:

Bcz he told the cost of money

5 0
2 years ago
Given a 8-bit ripple carry adder and the following four input scenarios: (i) A4 + 1F, (ii) AB+55, (iii) CA+34, (iv) 6D+29. a) Un
Bogdan [553]

Answer:

Answer for the question:

Given a 8-bit ripple carry adder and the following four input scenarios: (i) A4 + 1F, (ii) AB+55, (iii) CA+34, (iv) 6D+29. a) Under which input scenario can adder generate correct output with the minimal delay? b) Under which input scenario can adder generate correct output with the maximum delay?

Is given in the attachment.

Explanation:

5 0
3 years ago
Read 2 more answers
primitive transportation and storage systems that make local distribution ineffective if not impossible, the lack of clean water
Vera_Pavlovna [14]

Primitive transportation and storage systems that make local distribution ineffective if not impossible, and the lack of clean water and the lack of effective sewer systems are all examples of the barrier called physical & environmental barriers.

<h3>What are the problems with having physical & environmental barriers?</h3>

Time, Place, Space, Climate, and Noise are the key environmental/physical constraints. Some are simple to change, while others may prove to be difficult.

Physical barriers are essentially defined by three primary factors: environment, distance, and medium unawareness. Environmental barriers, on the other hand, are connected to variables that occur in the current environment.

Learn more about transportation:
brainly.com/question/27667264
#SPJ1

5 0
1 year ago
A rocket is launched vertically from rest with a constant thrust until the rocket reaches an altitude of 25 m and the thrust end
hjlf

Answer:

a) v=19.6 m/s

b) H=19.58 m

c) v_{f}=29.57 m/s  

Explanation:

a) Let's calculate the work done by the rocket until the thrust ends.

W=F_{tot}h=(F_{thrust}-mg)h=(35-(2*9.81))*25=384.5 J

But we know the work is equal to change of kinetic energy, so:

W=\Delta K=\frac{1}{2}mv^{2}

v=\sqrt{\frac{2W}{m}}=19.6 m/s

b) Here we have a free fall motion, because there is not external forces acting, that is way we can use the free-fall equations.

v_{f}^{2}=v_{i}^{2}-2gh

At the maximum height the velocity is 0, so v(f) = 0.

0=v_{i}^{2}-2gH

H=\frac{19.6^{2}}{2*9.81}=19.58 m  

c) Here we can evaluate the motion equation between the rocket at 25 m from the ground and the instant before the rocket touch the ground.

Using the same equation of part b)

v_{f}^{2}=v_{i}^{2}-2gh

v_{f}=\sqrt{19.6^{2}-(2*9.81*(-25))}=29.57 m/s

The minus sign of 25 means the zero of the reference system is at the pint when the thrust ends.

I hope it helps you!

6 0
3 years ago
An engine operates on gasoline (LHV=44 MJ/kg) with a brake thermal efficiency of 37.9 % What is the brake specific fuel consumpt
scZoUnD [109]

Answer:

s =0.21\ kg/Kw.hr

Explanation:

Given that

Calorific value (CV) = 44 MJ/Kg

CV= 44,000 KJ/kg

Brake thermal efficiency(η) = 37.9 %

We know that

\eta =\dfrac{BP}{\dot{m_f}\times CV}

Where BP is the brake power

\eta =\dfrac{BP}{\dot{m_f}\times CV}

0.379 =\dfrac{BP}{\dot{m_f}\times 44000}

\dfrac{BP}{\dot{m_f}}=16676

Brake specific fuel consumption (s)

s =\dfrac{\dot{m_f}}{BP}

s =\dfrac{3600\times \dot{m_f}}{BP}

s =\dfrac{3600}{16,676}\ kg/Kw.hr

s =0.21\ kg/Kw.hr

7 0
3 years ago
Other questions:
  • Iron has a BCC crystal structure, an atomic radius of 0.124 nm, and an atomic weight of 55.85 g/mol. Compute and compare its the
    8·1 answer
  • A power hacksaw used to cut metal, Link 5 pivots at O5 and its weight forces the saw-blade against the workpiece while the linka
    11·1 answer
  • Refers to the capability of a vehicle to begin moving forward on a specified grade.
    14·1 answer
  • What are the desired characteristics or values for the following parameters of an ideal amplifier?o Phase change as a function o
    10·1 answer
  • What is the weakest link in the security of an IT infrastructure? What are some of the strategies for reducing the risks?
    11·1 answer
  • Name the point of intersection, where the axis meet.
    6·1 answer
  • The current through a 0.1 Henrys (H) inductor is i(t) = 10 t e^-5tA. Find the voltage across the inductor.
    10·1 answer
  • Rainfall rates for successive 20-min period of a 140min storm are 1.5, 1.5, 6.0, 4.0, 1.0, 0.8, and 3.2 in/hr, totaling 6.0in. D
    12·1 answer
  • In regards to bridges, what innovation took place in the 60's ?
    6·1 answer
  • What is the number for account receivable?​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!