D
D
dmitriev_maksimka2014-10-19 15:37:31
MySQL
dmitriev_maksimka, 2014-10-19 15:37:31

How to display the names of customers who had more than 3 - ex orders?

There are 2 tables. It is necessary to display the names of customers who had more than 3 orders.
1a3d04d9b6394902aef03bf6d4d523a9.PNG317dca347aa74814adf897ea4af10a2b.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mnbck, 2014-10-19
@dmitriev_maksimka

select тк.название
from таблица_клиентов тк
join таблица заказов тз on тк.код_клиента=тз.код_клиента
group by тк.название
having count(тк.название)>3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question