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
Marketing in the fresh produce industry does not include buying, selling,
goldfiish [28.3K]

Answer: I personally believe it does, because the Circle of Life, or what I think, at least buying and selling

Explanation:

3 0
3 years ago
How to find Catenary length in sag
Gnom [1K]

Answer:

buter uwu heheheheh joke

6 0
2 years ago
A dipstick is (a direct,an indirect) measurement device
icang [17]
Direct because it’s going right in the spot it needs to be in
3 0
4 years ago
Special considerations must be given to systems using liquid hydrogen for fuel because of: A. Liquid hydrogen's low density B. L
vitfil [10]

Answer:

D.All of the above

Explanation:

Properties of hydrogen:

1.It is lighter than air.It has density about 0.089 g/L.

2.Hydrogen  rapidly change from liquid state to gas,so special protection is required to protect it.

3.It is highly flammable gas.

4.Liquid form of hydrogen exits at -432 F .This is very low temperature so special protection requires to keep it in liquid form.          

6 0
3 years ago
Carbon dioxide gas enters a well-insulated diffuser at 20 lbf/in.2 , 500R, with a velocity of 800 ft/s through a flow area of 1.
inessss [21]

Answer:

Exit Temperature= T2=563.6 °R

Exit Pressure= P2= 30.06 lbf/in^2

Mass Flow rate=1.276 lb/sec

Explanation:

Answer is explained in detailed way in the attached files.

4 0
3 years ago
Other questions:
  • Tech distractions do NOT include _________.
    9·1 answer
  • Select the correct answer.
    8·1 answer
  • a vertical cylindrical container is being cooled in ambient air at 25 °C with no air circulation. if the initial temperature of
    12·2 answers
  • declare integer product declare integer number product = 0 do while product < 100 display ""Type your number"" input number p
    8·1 answer
  • Define the Static Balancing.
    12·1 answer
  • Are we living in a simulation! <br> True <br> False
    12·2 answers
  • Investiga por que esta simple actividad puede ayudar a mejorar las condiciones ambientales que tu comunidad?
    6·1 answer
  • Tech A says that bench bleeding a master cylinder will prevent having to bleed air from the brake lines during replacement. Tech
    11·1 answer
  • ________ is not within other loop.Immersive Reader
    10·1 answer
  • What is shown in the above figure
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!