X
X
xXNullXx2020-09-02 16:11:23
SQL
xXNullXx, 2020-09-02 16:11:23

How to find the number of cars sold of each brand?

How to find the number of cars sold of each brand?
2 tables: CAR, DEAL. CAR: id, model, marque; DEL: id, name_client, id_care; output format: marque, count_car

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2020-09-02
@xXNullXx

SELECT marque, COUNT(*) AS count_car
  FROM CAR
    INNER JOIN DEL ON id_care = CAR.id
  GROUP BY marque

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question