S
S
SorryIHaveLapki2020-02-22 12:12:36
SQL
SorryIHaveLapki, 2020-02-22 12:12:36

How to execute query in SQL task?

ownload/67963667_cc538eb9ac0e41b743456558c706d2d4_800.jpg" alt="image"/>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cyberlog, 2020-02-22
@SorryIHaveLapki

one)

SELECT b.BrandName FROM Auto a 
LEFT JOIN Brand b ON b.BrandId = a.BrandId
GROUP BY a.BrandId ORDER BY AVG(a.PRICE) DESC
LIMIT 1;

2)
SELECT COUNT(a.AutoId) FROM Auto a
LEFT JOIN Brand b ON b.BrandId = a.BrandId
WHERE b.BrandCountry="DE";

3)
I can't think

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question